Skip to content

Commit

Permalink
wgengine/magicsock: fix stats packet counter on derp egress
Browse files Browse the repository at this point in the history
Updates tailscale/corp#22075

Signed-off-by: Anton Tolchanov <anton@tailscale.com>
  • Loading branch information
knyar committed Oct 29, 2024
1 parent 94fa6d9 commit 11e9676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wgengine/magicsock/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 11e9676

Please sign in to comment.