From d5d70ae9eaa1fe725ccf6b847768d9805f8c86e1 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Mon, 12 Apr 2021 10:27:10 -0700 Subject: [PATCH] wgengine/monitor: reduce Linux log spam on down Fixes #1689 Signed-off-by: Brad Fitzpatrick --- wgengine/monitor/monitor_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgengine/monitor/monitor_linux.go b/wgengine/monitor/monitor_linux.go index aef6d7ed9..9f60d7703 100644 --- a/wgengine/monitor/monitor_linux.go +++ b/wgengine/monitor/monitor_linux.go @@ -98,7 +98,7 @@ func (c *nlConn) Receive() (message, error) { dst := netaddrIPPrefix(rmsg.Attributes.Dst, rmsg.DstLength) 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, // which we make ourselves. } else {