mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2025-01-12 03:52:11 +08:00
fix: remote conn statistic error (#1776)
TCP handshake traffic should be counted as upload traffic for the remote connection
This commit is contained in:
parent
1c5f4a3ab1
commit
49d54cc293
@ -547,7 +547,7 @@ func handleTCPConn(connCtx C.ConnContext) {
|
||||
}
|
||||
logMetadata(metadata, rule, remoteConn)
|
||||
|
||||
remoteConn = statistic.NewTCPTracker(remoteConn, statistic.DefaultManager, metadata, rule, 0, int64(peekLen), true)
|
||||
remoteConn = statistic.NewTCPTracker(remoteConn, statistic.DefaultManager, metadata, rule, int64(peekLen), 0, true)
|
||||
defer func(remoteConn C.Conn) {
|
||||
_ = remoteConn.Close()
|
||||
}(remoteConn)
|
||||
|
Loading…
x
Reference in New Issue
Block a user