mirror of
https://github.com/tailscale/tailscale.git
synced 2025-03-31 05:23:14 +00:00
ipn/ipnlocal: on Windows peerapi bind failures, try again on link change
Updates #1620 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
parent
a7be780155
commit
cf2beafbcd
@ -200,6 +200,14 @@ func (b *LocalBackend) linkChange(major bool, ifst *interfaces.State) {
|
|||||||
// If the local network configuration has changed, our filter may
|
// If the local network configuration has changed, our filter may
|
||||||
// need updating to tweak default routes.
|
// need updating to tweak default routes.
|
||||||
b.updateFilter(b.netMap, b.prefs)
|
b.updateFilter(b.netMap, b.prefs)
|
||||||
|
|
||||||
|
if runtime.GOOS == "windows" && b.netMap != nil {
|
||||||
|
want := len(b.netMap.Addresses)
|
||||||
|
b.logf("linkChange: peerAPIListeners too low; trying again")
|
||||||
|
if len(b.peerAPIListeners) < want {
|
||||||
|
go b.initPeerAPIListener()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b *LocalBackend) onHealthChange(sys health.Subsystem, err error) {
|
func (b *LocalBackend) onHealthChange(sys health.Subsystem, err error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user