From 6e42430ad8447eb54b793c9ce441ef9dd53f8283 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 22 Feb 2021 20:21:51 -0800 Subject: [PATCH] wgengine/monitor: don't log any single-IP routes added to the tailscale table. Signed-off-by: David Anderson --- 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 07395c8f0..aa7cded06 100644 --- a/wgengine/monitor/monitor_linux.go +++ b/wgengine/monitor/monitor_linux.go @@ -97,7 +97,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 && rmsg.DstLength == 32 { + if msg.Header.Type == unix.RTM_NEWROUTE && 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 {