wgengine/monitor: reduce Linux log spam on down

Fixes #1689

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
pull/1694/head
Brad Fitzpatrick 4 years ago
parent c0befee188
commit d5d70ae9ea

@ -98,7 +98,7 @@ func (c *nlConn) Receive() (message, error) {
dst := netaddrIPPrefix(rmsg.Attributes.Dst, rmsg.DstLength) dst := netaddrIPPrefix(rmsg.Attributes.Dst, rmsg.DstLength)
gw := netaddrIP(rmsg.Attributes.Gateway) gw := netaddrIP(rmsg.Attributes.Gateway)
if msg.Header.Type == unix.RTM_NEWROUTE && rmsg.Table == tsTable && dst.IsSingleIP() { if rmsg.Table == tsTable && dst.IsSingleIP() {
// Don't log. Spammy and normal to see a bunch of these on start-up, // Don't log. Spammy and normal to see a bunch of these on start-up,
// which we make ourselves. // which we make ourselves.
} else { } else {

Loading…
Cancel
Save