mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-21 22:21:41 +00:00
wgengine/netstack: stop re-adding IPs registered by active TCP connections (#1629)
Signed-off-by: Naman Sood <mail@nsood.in>
This commit is contained in:
parent
1bd14a072c
commit
31c7745631
@ -242,7 +242,6 @@ func (ns *Impl) updateIPs(nm *netmap.NetworkMap) {
|
|||||||
ns.mu.Lock()
|
ns.mu.Lock()
|
||||||
for ip := range ns.connsOpenBySubnetIP {
|
for ip := range ns.connsOpenBySubnetIP {
|
||||||
ipp := tcpip.Address(ip.IPAddr().IP).WithPrefix()
|
ipp := tcpip.Address(ip.IPAddr().IP).WithPrefix()
|
||||||
ipsToBeAdded[ipp] = true
|
|
||||||
delete(ipsToBeRemoved, ipp)
|
delete(ipsToBeRemoved, ipp)
|
||||||
}
|
}
|
||||||
ns.mu.Unlock()
|
ns.mu.Unlock()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user