mirror of
https://github.com/tailscale/tailscale.git
synced 2025-05-02 21:51:06 +00:00
cmd/tailscaled: fix monitor debug tool's output
Logic was backwards, introduced in earlier monitor refactoring last week in e3df29d488f5ce50e. Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
parent
04e72f95cc
commit
d3e56aa979
@ -69,7 +69,7 @@ func runMonitor(ctx context.Context) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
mon.RegisterChangeCallback(func(changed bool, st *interfaces.State) {
|
mon.RegisterChangeCallback(func(changed bool, st *interfaces.State) {
|
||||||
if changed {
|
if !changed {
|
||||||
log.Printf("Link monitor fired; no change")
|
log.Printf("Link monitor fired; no change")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user