don't using deprecated tunnel.TCPIn()

This commit is contained in:
wwqgtxx 2023-10-22 16:49:49 +08:00
parent 14a961f521
commit 57504a7e8e

View File

@ -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
}