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 3 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 {
stats.UpdateTxPhysical(de.nodeAddr, derpAddr, 1, txBytes)
stats.UpdateTxPhysical(de.nodeAddr, derpAddr, len(buffs), txBytes)
}
if allOk {
return nil

Loading…
Cancel
Save