From e86b39b73fd96a894d3a73e7ac5068f5933c7043 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 5 Feb 2021 20:30:32 -0800 Subject: [PATCH] ipn/ipnlocal: don't short-circuit default route filtering. If no exit node is specified, the filter must still run to remove offered default routes from all peers. Signed-off-by: David Anderson --- ipn/ipnlocal/local.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ipn/ipnlocal/local.go b/ipn/ipnlocal/local.go index 6ad80ed53..071761434 100644 --- a/ipn/ipnlocal/local.go +++ b/ipn/ipnlocal/local.go @@ -376,10 +376,6 @@ func (b *LocalBackend) setClientStatus(st controlclient.Status) { // whether prefs was mutated as part of the process, due to an exit // node IP being converted into a node ID. func (b *LocalBackend) keepOneExitNodeLocked(nm *netmap.NetworkMap) (prefsChanged bool) { - if b.prefs.ExitNodeID == "" && b.prefs.ExitNodeIP.IsZero() { - return false - } - // If we have a desired IP on file, try to find the corresponding // node. if !b.prefs.ExitNodeIP.IsZero() {