From 6e4460ae6518b2bcdbc3dc5472a407b56772d939 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 22 Feb 2019 19:33:28 +0100 Subject: [PATCH] device: send persistent keepalive when bringing up device Reported-by: Marcelo Bello --- device.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/device.go b/device.go index 2538648..18e1138 100644 --- a/device.go +++ b/device.go @@ -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()