mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-23 09:21:41 +00:00
wgengine/monitor: don't log any single-IP routes added to the tailscale table.
Signed-off-by: David Anderson <danderson@tailscale.com> (cherry picked from commit 6e42430ad8447eb54b793c9ce441ef9dd53f8283)
This commit is contained in:
parent
d51ebe38d4
commit
3b9fcc2b81
@ -97,7 +97,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 && 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,
|
// 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…
x
Reference in New Issue
Block a user