ipn/ipnlocal: update hostinfo when app connector state is toggled

Updates: https://github.com/tailscale/corp/issues/16041
Signed-off-by: Tom DNetto <tom@tailscale.com>
(cherry picked from commit 8a660a65139967f17f3500c7fb7e221708a2154c)
This commit is contained in:
Tom DNetto 2023-11-28 15:38:01 -08:00 committed by Denton Gentry
parent 864484b758
commit b709a723ba
No known key found for this signature in database

View File

@ -3970,6 +3970,7 @@ func (b *LocalBackend) applyPrefsToHostinfoLocked(hi *tailcfg.Hostinfo, prefs ip
// properly. This exists as an optimization to control to program fewer DNS
// records that have ingress enabled but are not actually being used.
hi.WireIngress = b.wantIngressLocked()
hi.AppConnector.Set(prefs.AppConnector().Advertise)
}
// enterState transitions the backend into newState, updating internal