diff --git a/core/src/main/golang/native/tunnel/init.go b/core/src/main/golang/native/tunnel/init.go index c91b3f2c..9f57b859 100644 --- a/core/src/main/golang/native/tunnel/init.go +++ b/core/src/main/golang/native/tunnel/init.go @@ -8,7 +8,6 @@ import ( "github.com/Dreamacro/clash/component/dialer" C "github.com/Dreamacro/clash/constant" - CTX "github.com/Dreamacro/clash/context" "github.com/Dreamacro/clash/tunnel" ) @@ -37,7 +36,7 @@ func init() { RawDstAddr: left.LocalAddr(), } - tunnel.TCPIn() <- CTX.NewConnContext(right, metadata) + go tunnel.Tunnel.HandleTCPConn(right, metadata) return left, nil }