mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 13:05:46 +00:00
wgengine/monitor: don't spam about Linux RTM_NEWRULE events
The earlier 2ba36c294b
started listening
for ip rule changes and only cared about DELRULE events, buts its subscription
included all rule events, including new ones, which meant we were then
catching our own ip rule creations and logging about how they were unknown.
Stop that log spam.
Updates #1591
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
parent
ec4d721572
commit
e41193ec4d
@ -119,6 +119,9 @@ func (c *nlConn) Receive() (message, error) {
|
|||||||
Dst: dst,
|
Dst: dst,
|
||||||
Gateway: gw,
|
Gateway: gw,
|
||||||
}, nil
|
}, nil
|
||||||
|
case unix.RTM_NEWRULE:
|
||||||
|
// Probably ourselves adding it.
|
||||||
|
return ignoreMessage{}, nil
|
||||||
case unix.RTM_DELRULE:
|
case unix.RTM_DELRULE:
|
||||||
// For https://github.com/tailscale/tailscale/issues/1591 where
|
// For https://github.com/tailscale/tailscale/issues/1591 where
|
||||||
// systemd-networkd deletes our rules.
|
// systemd-networkd deletes our rules.
|
||||||
|
Loading…
Reference in New Issue
Block a user