From a5c567154938249bf8734ede107feffe3049e337 Mon Sep 17 00:00:00 2001 From: Shtorm <108103062+shtorm-7@users.noreply.github.com> Date: Sun, 13 Jul 2025 21:41:41 +0300 Subject: [PATCH] Fix tunnel client --- protocol/tunnel/client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/protocol/tunnel/client.go b/protocol/tunnel/client.go index 4e4f9c2f..45255c1f 100644 --- a/protocol/tunnel/client.go +++ b/protocol/tunnel/client.go @@ -13,6 +13,7 @@ import ( C "github.com/sagernet/sing-box/constant" "github.com/sagernet/sing-box/log" "github.com/sagernet/sing-box/option" + "github.com/sagernet/sing/common" E "github.com/sagernet/sing/common/exceptions" "github.com/sagernet/sing/common/logger" M "github.com/sagernet/sing/common/metadata" @@ -116,7 +117,7 @@ func (c *ClientEndpoint) ListenPacket(ctx context.Context, destination M.Socksad } func (c *ClientEndpoint) Close() error { - return nil + return common.Close(c.outbound) } func (c *ClientEndpoint) startInboundConn() error {