From 31c774563120970a1d6b285068fdb6fbddeff289 Mon Sep 17 00:00:00 2001 From: Naman Sood Date: Wed, 31 Mar 2021 15:32:33 -0400 Subject: [PATCH] wgengine/netstack: stop re-adding IPs registered by active TCP connections (#1629) Signed-off-by: Naman Sood --- wgengine/netstack/netstack.go | 1 - 1 file changed, 1 deletion(-) diff --git a/wgengine/netstack/netstack.go b/wgengine/netstack/netstack.go index 92881decd..62906115c 100644 --- a/wgengine/netstack/netstack.go +++ b/wgengine/netstack/netstack.go @@ -242,7 +242,6 @@ func (ns *Impl) updateIPs(nm *netmap.NetworkMap) { ns.mu.Lock() for ip := range ns.connsOpenBySubnetIP { ipp := tcpip.Address(ip.IPAddr().IP).WithPrefix() - ipsToBeAdded[ipp] = true delete(ipsToBeRemoved, ipp) } ns.mu.Unlock()