mirror of
https://github.com/tailscale/tailscale.git
synced 2025-01-08 09:07:44 +00:00
ipn/ipnlocal: also use SSHPolicies when updating filterHash
Updates #3802 Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
parent
d201d217df
commit
a04eebf59f
@ -1133,8 +1133,12 @@ func (b *LocalBackend) updateFilterLocked(netMap *netmap.NetworkMap, prefs *ipn.
|
|||||||
}
|
}
|
||||||
localNets, _ := localNetsB.IPSet()
|
localNets, _ := localNetsB.IPSet()
|
||||||
logNets, _ := logNetsB.IPSet()
|
logNets, _ := logNetsB.IPSet()
|
||||||
|
var sshPol tailcfg.SSHPolicy
|
||||||
|
if haveNetmap && netMap.SSHPolicy != nil {
|
||||||
|
sshPol = *netMap.SSHPolicy
|
||||||
|
}
|
||||||
|
|
||||||
changed := deephash.Update(&b.filterHash, haveNetmap, addrs, packetFilter, localNets.Ranges(), logNets.Ranges(), shieldsUp)
|
changed := deephash.Update(&b.filterHash, haveNetmap, addrs, packetFilter, localNets.Ranges(), logNets.Ranges(), shieldsUp, sshPol)
|
||||||
if !changed {
|
if !changed {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user