integer overflow fix
This commit is contained in:
parent
a46acbb85c
commit
26ed900d41
1 changed files with 1 additions and 1 deletions
|
@ -578,7 +578,7 @@ impl State {
|
|||
|
||||
// if peer is connected and endpoint is the correct one,
|
||||
// set higher keepalive and then skip reconfiguring it
|
||||
if !bad_endpoint && now < peer.last_seen + TIMEOUT.as_secs() {
|
||||
if !bad_endpoint && peer.last_seen != u64::MAX && now < peer.last_seen + TIMEOUT.as_secs() {
|
||||
Command::new("wg")
|
||||
.args([
|
||||
"set",
|
||||
|
|
Loading…
Add table
Reference in a new issue