mirror of
https://github.com/amnezia-vpn/amneziawg-go.git
synced 2025-04-16 14:06:54 +02:00
device: send persistent keepalive when bringing up device
Reported-by: Marcelo Bello
This commit is contained in:
parent
d002eff155
commit
6e4460ae65
1 changed files with 3 additions and 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()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue