Skip to content

Commit

Permalink
Merge pull request #12 from furmur/bugfix/stalled_wireguard_peer_endp…
Browse files Browse the repository at this point in the history
…oint

clear peer_endpoint on metrics update
  • Loading branch information
kbknapp committed May 10, 2024
2 parents 7d2d768 + 226065e commit 9f6b383
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ impl Metrics {
btr.inc_by(diff);
}

self.peer_endpoint.reset();

for p in &state.peers {
assert!(p.interface < state.interfaces.len());

Expand Down

0 comments on commit 9f6b383

Please sign in to comment.