chore: cleanup unneed patch

This commit is contained in:
wwqgtxx
2023-10-22 18:15:31 +08:00
parent f2857b3243
commit 5cca3569e9
7 changed files with 0 additions and 135 deletions

View File

@@ -1,25 +1,5 @@
package statistic
import (
"net"
)
func (m *Manager) Total() (up, down int64) {
return m.uploadTotal.Load(), m.downloadTotal.Load()
}
func (tt *tcpTracker) RawConn() (net.Conn, bool) {
if tt.Chain.Last() == "DIRECT" {
return tt.Conn, true
}
return nil, false
}
func (ut *udpTracker) RawPacketConn() (net.PacketConn, bool) {
if ut.Chain.Last() == "DIRECT" {
return ut.PacketConn, true
}
return nil, false
}