@ -27,7 +27,7 @@ import (
"inet.af/netaddr"
"inet.af/netaddr"
"tailscale.com/control/controlclient"
"tailscale.com/control/controlclient"
"tailscale.com/health"
"tailscale.com/health"
"tailscale.com/internal/deep print "
"tailscale.com/internal/deep hash "
"tailscale.com/ipn/ipnstate"
"tailscale.com/ipn/ipnstate"
"tailscale.com/net/dns"
"tailscale.com/net/dns"
"tailscale.com/net/dns/resolver"
"tailscale.com/net/dns/resolver"
@ -664,7 +664,7 @@ func (e *userspaceEngine) maybeReconfigWireguardLocked(discoChanged map[key.Publ
}
}
}
}
if ! deep print . UpdateHash ( & e . lastEngineSigTrim , min , trimmedDisco , trackDisco , trackIPs ) {
if ! deep hash . UpdateHash ( & e . lastEngineSigTrim , min , trimmedDisco , trackDisco , trackIPs ) {
// No changes
// No changes
return nil
return nil
}
}
@ -785,8 +785,8 @@ func (e *userspaceEngine) Reconfig(cfg *wgcfg.Config, routerCfg *router.Config,
}
}
e . mu . Unlock ( )
e . mu . Unlock ( )
engineChanged := deep print . UpdateHash ( & e . lastEngineSigFull , cfg )
engineChanged := deep hash . UpdateHash ( & e . lastEngineSigFull , cfg )
routerChanged := deep print . UpdateHash ( & e . lastRouterSig , routerCfg , dnsCfg )
routerChanged := deep hash . UpdateHash ( & e . lastRouterSig , routerCfg , dnsCfg )
if ! engineChanged && ! routerChanged {
if ! engineChanged && ! routerChanged {
return ErrNoChanges
return ErrNoChanges
}
}