wgengine/magicsock: fix stats packet counter on derp egress

Updates tailscale/corp#22075

Signed-off-by: Anton Tolchanov <anton@tailscale.com>
pull/13953/head
Anton Tolchanov 4 weeks ago committed by Anton Tolchanov
parent 94fa6d97c5
commit 11e96760ff

@ -991,7 +991,7 @@ func (de *endpoint) send(buffs [][]byte) error {
} }
if stats := de.c.stats.Load(); stats != nil { if stats := de.c.stats.Load(); stats != nil {
stats.UpdateTxPhysical(de.nodeAddr, derpAddr, 1, txBytes) stats.UpdateTxPhysical(de.nodeAddr, derpAddr, len(buffs), txBytes)
} }
if allOk { if allOk {
return nil return nil

Loading…
Cancel
Save