… | |
… | |
589 | { |
589 | { |
590 | if (ictx && octx) |
590 | if (ictx && octx) |
591 | { |
591 | { |
592 | connectmode = conf->connectmode; |
592 | connectmode = conf->connectmode; |
593 | |
593 | |
|
|
594 | // make sure rekeying timeouts are slightly asymmetric |
594 | rekey.start (NOW + ::conf.rekey); |
595 | rekey.start (NOW + ::conf.rekey |
|
|
596 | + (conf->id > THISNODE->id ? 10 : 0)); |
595 | keepalive.start (NOW + ::conf.keepalive); |
597 | keepalive.start (NOW + ::conf.keepalive); |
596 | |
598 | |
597 | // send queued packets |
599 | // send queued packets |
598 | if (ictx && octx) |
600 | if (ictx && octx) |
599 | { |
601 | { |