mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-16 03:31:39 +00:00
ipnlocal: move log line inside if statement
Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
This commit is contained in:
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 {
|
if peerAPIListenAsync && b.netMap != nil && b.state == ipn.Running {
|
||||||
want := len(b.netMap.Addresses)
|
want := len(b.netMap.Addresses)
|
||||||
b.logf("linkChange: peerAPIListeners too low; trying again")
|
|
||||||
if len(b.peerAPIListeners) < want {
|
if len(b.peerAPIListeners) < want {
|
||||||
|
b.logf("linkChange: peerAPIListeners too low; trying again")
|
||||||
go b.initPeerAPIListener()
|
go b.initPeerAPIListener()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user