mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2025-10-30 19:46:26 +08:00
update completed sessions
This commit is contained in:
@@ -115,12 +115,12 @@ func (h *tcpHandler) relay(localConn, remoteConn net.Conn, sess *stats.Session)
|
||||
|
||||
<-upCh // Wait for UpLink done.
|
||||
|
||||
// add -1
|
||||
atomic.AddInt64(&activeTCPConnections, -1)
|
||||
|
||||
if h.sessionStater != nil {
|
||||
h.sessionStater.RemoveSession(localConn)
|
||||
}
|
||||
|
||||
// add -1
|
||||
atomic.AddInt64(&activeTCPConnections, -1)
|
||||
}
|
||||
|
||||
func (h *tcpHandler) Handle(localConn net.Conn, target *net.TCPAddr) error {
|
||||
|
||||
Reference in New Issue
Block a user