From 93289aab032745125297c735ce4dac9a59b40367 Mon Sep 17 00:00:00 2001 From: "Jeb.Wang" Date: Wed, 15 Jan 2025 17:14:31 +0800 Subject: [PATCH] Fix goroutine leaks --- server/proxy/xtcp.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/proxy/xtcp.go b/server/proxy/xtcp.go index f69d0790..bac7349e 100644 --- a/server/proxy/xtcp.go +++ b/server/proxy/xtcp.go @@ -43,6 +43,7 @@ func NewXTCPProxy(baseProxy *BaseProxy) Proxy { return &XTCPProxy{ BaseProxy: baseProxy, cfg: unwrapped, + closeCh: make(chan struct{}), } }