wgengine/monitor: don't call LinkChange when interfaces look unchanged

Basically, don't trust the OS-level link monitor to only tell you
interesting things. Sanity check it.

Also, move the interfaces package into the net directory now that we
have it.
This commit is contained in:
Brad Fitzpatrick
2020-03-10 11:02:30 -07:00
parent 39c0ae1dba
commit 5c1e443d34
7 changed files with 63 additions and 5 deletions

View File

@@ -20,8 +20,8 @@ import (
"strings"
"time"
"tailscale.com/interfaces"
"tailscale.com/metrics"
"tailscale.com/net/interfaces"
)
// DevMode controls whether extra output in shown, for when the binary is being run in dev mode.