From 95f4c8a01ba5bb368e0500426df86efa13e93fc9 Mon Sep 17 00:00:00 2001 From: Nate Brown Date: Tue, 4 May 2021 19:15:24 -0500 Subject: [PATCH] Don't check for rebind if we are closing the tunnel (#457) --- inside.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inside.go b/inside.go index d2ca06a..3695028 100644 --- a/inside.go +++ b/inside.go @@ -201,7 +201,7 @@ func (f *Interface) sendNoMetrics(t NebulaMessageType, st NebulaMessageSubType, // Query our LH if we haven't since the last time we've been rebound, this will cause the remote to punch against // all our IPs and enable a faster roaming. - if hostinfo.lastRebindCount != f.rebindCount { + if t != closeTunnel && hostinfo.lastRebindCount != f.rebindCount { //NOTE: there is an update hole if a tunnel isn't used and exactly 256 rebinds occur before the tunnel is // finally used again. This tunnel would eventually be torn down and recreated if this action didn't help. f.lightHouse.QueryServer(hostinfo.hostId, f)