device: send persistent keepalive when bringing up device
Reported-by: Marcelo Bello
This commit is contained in:
parent
d002eff155
commit
6e4460ae65
@ -138,6 +138,9 @@ func deviceUpdateState(device *Device) {
|
|||||||
device.peers.RLock()
|
device.peers.RLock()
|
||||||
for _, peer := range device.peers.keyMap {
|
for _, peer := range device.peers.keyMap {
|
||||||
peer.Start()
|
peer.Start()
|
||||||
|
if peer.persistentKeepaliveInterval > 0 {
|
||||||
|
peer.SendKeepalive()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
device.peers.RUnlock()
|
device.peers.RUnlock()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user