ipn/ipnlocal: include AutoUpdate prefs in HostInfo.AllowsUpdate (#9792)

Updates #9260

Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
pull/9796/head
Andrew Lytvynov 1 year ago committed by GitHub
parent 754fb9a8a8
commit af5a586463
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3771,6 +3771,7 @@ func (b *LocalBackend) applyPrefsToHostinfoLocked(hi *tailcfg.Hostinfo, prefs ip
hi.RoutableIPs = prefs.AdvertiseRoutes().AsSlice()
hi.RequestTags = prefs.AdvertiseTags().AsSlice()
hi.ShieldsUp = prefs.ShieldsUp()
hi.AllowsUpdate = hi.AllowsUpdate || prefs.AutoUpdate().Apply
var sshHostKeys []string
if prefs.RunSSH() && envknob.CanSSHD() {

Loading…
Cancel
Save