Fix: udp traffic track (#608)

This commit is contained in:
Kr328
2020-03-28 20:05:38 +08:00
committed by GitHub
parent 518354e7eb
commit 206767247e
2 changed files with 8 additions and 2 deletions

View File

@ -85,7 +85,6 @@ func handleUDPToRemote(packet C.UDPPacket, pc C.PacketConn, metadata *C.Metadata
if _, err := pc.WriteWithMetadata(packet.Data(), metadata); err != nil {
return
}
DefaultManager.Upload() <- int64(len(packet.Data()))
}
func handleUDPToLocal(packet C.UDPPacket, pc net.PacketConn, key string, fAddr net.Addr) {
@ -109,7 +108,6 @@ func handleUDPToLocal(packet C.UDPPacket, pc net.PacketConn, key string, fAddr n
if err != nil {
return
}
DefaultManager.Download() <- int64(n)
}
}