mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-09 16:11:23 +00:00
wgengine/monitor: reduce Linux log spam on down
Fixes #1689 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user