From 8e4327c6cbab99ee36cd00bda45b79a51def85ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Fri, 15 Nov 2024 16:59:52 +0800 Subject: [PATCH] Fix close listener --- protocol/http/inbound.go | 2 +- protocol/hysteria/inbound.go | 2 +- protocol/hysteria2/inbound.go | 2 +- protocol/trojan/inbound.go | 2 +- protocol/tuic/inbound.go | 2 +- protocol/vless/inbound.go | 2 +- protocol/vmess/inbound.go | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/protocol/http/inbound.go b/protocol/http/inbound.go index 87ed9a10..5560ee40 100644 --- a/protocol/http/inbound.go +++ b/protocol/http/inbound.go @@ -73,7 +73,7 @@ func (h *Inbound) Start() error { func (h *Inbound) Close() error { return common.Close( - &h.listener, + h.listener, h.tlsConfig, ) } diff --git a/protocol/hysteria/inbound.go b/protocol/hysteria/inbound.go index 8127106b..4c146d22 100644 --- a/protocol/hysteria/inbound.go +++ b/protocol/hysteria/inbound.go @@ -168,7 +168,7 @@ func (h *Inbound) Start() error { func (h *Inbound) Close() error { return common.Close( - &h.listener, + h.listener, h.tlsConfig, common.PtrOrNil(h.service), ) diff --git a/protocol/hysteria2/inbound.go b/protocol/hysteria2/inbound.go index cbf81109..981d15be 100644 --- a/protocol/hysteria2/inbound.go +++ b/protocol/hysteria2/inbound.go @@ -179,7 +179,7 @@ func (h *Inbound) Start() error { func (h *Inbound) Close() error { return common.Close( - &h.listener, + h.listener, h.tlsConfig, common.PtrOrNil(h.service), ) diff --git a/protocol/trojan/inbound.go b/protocol/trojan/inbound.go index 010ae8ba..bb170694 100644 --- a/protocol/trojan/inbound.go +++ b/protocol/trojan/inbound.go @@ -149,7 +149,7 @@ func (h *Inbound) Start() error { func (h *Inbound) Close() error { return common.Close( - &h.listener, + h.listener, h.tlsConfig, h.transport, ) diff --git a/protocol/tuic/inbound.go b/protocol/tuic/inbound.go index 33de10d5..1e23ea98 100644 --- a/protocol/tuic/inbound.go +++ b/protocol/tuic/inbound.go @@ -150,7 +150,7 @@ func (h *Inbound) Start() error { func (h *Inbound) Close() error { return common.Close( - &h.listener, + h.listener, h.tlsConfig, common.PtrOrNil(h.server), ) diff --git a/protocol/vless/inbound.go b/protocol/vless/inbound.go index 0641549b..05a99fd1 100644 --- a/protocol/vless/inbound.go +++ b/protocol/vless/inbound.go @@ -129,7 +129,7 @@ func (h *Inbound) Start() error { func (h *Inbound) Close() error { return common.Close( h.service, - &h.listener, + h.listener, h.tlsConfig, h.transport, ) diff --git a/protocol/vmess/inbound.go b/protocol/vmess/inbound.go index 1c80f376..07451007 100644 --- a/protocol/vmess/inbound.go +++ b/protocol/vmess/inbound.go @@ -143,7 +143,7 @@ func (h *Inbound) Start() error { func (h *Inbound) Close() error { return common.Close( h.service, - &h.listener, + h.listener, h.tlsConfig, h.transport, )