mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2025-07-13 17:36:28 +00:00
Further tweaks
This commit is contained in:
@ -250,6 +250,7 @@ func (p *peer) handleTraffic(packet []byte, pTypeLen int) {
|
||||
func (p *peer) sendPacket(packet []byte) {
|
||||
// Is there ever a case where something more complicated is needed?
|
||||
// What if p.out blocks?
|
||||
atomic.AddUint64(&p.bytesSent, uint64(len(packet)))
|
||||
p.out(packet)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user