diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-02-22 19:33:28 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-02-22 19:33:28 +0100 |
commit | 6e4460ae6518b2bcdbc3dc5472a407b56772d939 (patch) | |
tree | 0eb384dcc1b1b3aebac91564b59edeb873e65f22 /device.go | |
parent | d002eff15589ffc384c8d7e8da5d7bd7e75720e4 (diff) |
device: send persistent keepalive when bringing up device
Reported-by: Marcelo Bello
Diffstat (limited to 'device.go')
-rw-r--r-- | device.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -138,6 +138,9 @@ func deviceUpdateState(device *Device) { device.peers.RLock() for _, peer := range device.peers.keyMap { peer.Start() + if peer.persistentKeepaliveInterval > 0 { + peer.SendKeepalive() + } } device.peers.RUnlock() |