ipnlocal: move log line inside if statement

Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
pull/2344/head
David Crawshaw 3 years ago committed by David Crawshaw
parent 14f901da6d
commit 805d5d3cde

@ -246,8 +246,8 @@ func (b *LocalBackend) linkChange(major bool, ifst *interfaces.State) {
if peerAPIListenAsync && b.netMap != nil && b.state == ipn.Running {
want := len(b.netMap.Addresses)
b.logf("linkChange: peerAPIListeners too low; trying again")
if len(b.peerAPIListeners) < want {
b.logf("linkChange: peerAPIListeners too low; trying again")
go b.initPeerAPIListener()
}
}

Loading…
Cancel
Save