mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2025-11-03 10:51:03 +08:00
Refactor: manager -> statistic
This commit is contained in:
@@ -11,12 +11,17 @@ import (
|
||||
"github.com/xjasonlyu/tun2socks/common/pool"
|
||||
"github.com/xjasonlyu/tun2socks/log"
|
||||
"github.com/xjasonlyu/tun2socks/proxy"
|
||||
"github.com/xjasonlyu/tun2socks/tunnel/statistic"
|
||||
)
|
||||
|
||||
const (
|
||||
tcpWaitTimeout = 5 * time.Second
|
||||
)
|
||||
|
||||
func newTCPTracker(conn net.Conn, metadata *adapter.Metadata) net.Conn {
|
||||
return statistic.NewTCPTracker(conn, metadata, statistic.DefaultManager)
|
||||
}
|
||||
|
||||
func handleTCP(localConn adapter.TCPConn) {
|
||||
defer localConn.Close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user