mirror of
https://github.com/MetaCubeX/ClashMetaForAndroid.git
synced 2025-04-03 13:53:34 +03:00
don't using deprecated tunnel.TCPIn()
This commit is contained in:
parent
14a961f521
commit
57504a7e8e
1 changed files with 1 additions and 2 deletions
|
@ -8,7 +8,6 @@ import (
|
||||||
|
|
||||||
"github.com/Dreamacro/clash/component/dialer"
|
"github.com/Dreamacro/clash/component/dialer"
|
||||||
C "github.com/Dreamacro/clash/constant"
|
C "github.com/Dreamacro/clash/constant"
|
||||||
CTX "github.com/Dreamacro/clash/context"
|
|
||||||
"github.com/Dreamacro/clash/tunnel"
|
"github.com/Dreamacro/clash/tunnel"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -37,7 +36,7 @@ func init() {
|
||||||
RawDstAddr: left.LocalAddr(),
|
RawDstAddr: left.LocalAddr(),
|
||||||
}
|
}
|
||||||
|
|
||||||
tunnel.TCPIn() <- CTX.NewConnContext(right, metadata)
|
go tunnel.Tunnel.HandleTCPConn(right, metadata)
|
||||||
|
|
||||||
return left, nil
|
return left, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue