mirror of
https://github.com/tailscale/tailscale.git
synced 2025-03-27 03:22:25 +00:00
wgengine/monitor: don't log unhandled RTM_{NEW,DEL}LINK messages
These aren't handled, but it's not an error to get one. Fixes #6806 Signed-off-by: Andrew Dunham <andrew@du.nham.ca> Change-Id: I1fcb9032ac36420aa72a048bf26f58360b9461f9
This commit is contained in:
parent
be10b529ec
commit
1011e64ad7
@ -228,6 +228,10 @@ func (c *nlConn) Receive() (message, error) {
|
|||||||
c.logf("%+v", rdm)
|
c.logf("%+v", rdm)
|
||||||
}
|
}
|
||||||
return rdm, nil
|
return rdm, nil
|
||||||
|
case unix.RTM_NEWLINK, unix.RTM_DELLINK:
|
||||||
|
// This is an unhandled message, but don't print an error.
|
||||||
|
// See https://github.com/tailscale/tailscale/issues/6806
|
||||||
|
return unspecifiedMessage{}, nil
|
||||||
default:
|
default:
|
||||||
c.logf("unhandled netlink msg type %+v, %q", msg.Header, msg.Data)
|
c.logf("unhandled netlink msg type %+v, %q", msg.Header, msg.Data)
|
||||||
return unspecifiedMessage{}, nil
|
return unspecifiedMessage{}, nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user