add punchy.respond_delay config option (#721)

This commit is contained in:
Wade Simmons
2023-03-29 15:32:35 -04:00
committed by GitHub
parent 8a82e0fb16
commit 3e5c7e6860
4 changed files with 26 additions and 6 deletions

View File

@@ -965,7 +965,7 @@ func (lhh *LightHouseHandler) handleHostPunchNotification(n *NebulaMeta, vpnIp i
if lhh.lh.punchy.GetRespond() {
queryVpnIp := iputil.VpnIp(n.Details.VpnIp)
go func() {
time.Sleep(time.Second * 5)
time.Sleep(lhh.lh.punchy.GetRespondDelay())
if lhh.l.Level >= logrus.DebugLevel {
lhh.l.Debugf("Sending a nebula test packet to vpn ip %s", queryVpnIp)
}