Skip to content

Commit 11e9676

Browse files
committed
wgengine/magicsock: fix stats packet counter on derp egress
Updates tailscale/corp#22075 Signed-off-by: Anton Tolchanov <[email protected]>
1 parent 94fa6d9 commit 11e9676

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wgengine/magicsock/endpoint.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ func (de *endpoint) send(buffs [][]byte) error {
991991
}
992992

993993
if stats := de.c.stats.Load(); stats != nil {
994-
stats.UpdateTxPhysical(de.nodeAddr, derpAddr, 1, txBytes)
994+
stats.UpdateTxPhysical(de.nodeAddr, derpAddr, len(buffs), txBytes)
995995
}
996996
if allOk {
997997
return nil

0 commit comments

Comments
 (0)