From 477e6f2b99c439648d5e672cb152bf65bdbc43a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A3=8E=E6=89=87=E6=BB=91=E7=BF=94=E7=BF=BC?= Date: Sun, 24 Aug 2025 04:40:22 +0000 Subject: [PATCH] fix close closed --- proxy/wireguard/client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proxy/wireguard/client.go b/proxy/wireguard/client.go index 345581c7371a..9de243607c27 100644 --- a/proxy/wireguard/client.go +++ b/proxy/wireguard/client.go @@ -129,7 +129,8 @@ func (h *Handler) processWireGuard(ctx context.Context, dialer internet.Dialer) } defer func() { if err != nil { - _ = h.bind.Close() + h.bind.Close() + h.bind = nil } }()