mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-24 01:41:42 +00:00
wgengine/monitor: don't return nil, nil in darwin monitor
We used to allow that, but now it just crashes. Separately I need to figure out why it got into this path at all, which is #1416. Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
parent
b89c757817
commit
31721759f3
@ -58,7 +58,7 @@ func (m *darwinRouteMon) Receive() (message, error) {
|
|||||||
msgs, err := route.ParseRIB(route.RIBTypeRoute, m.buf[:n])
|
msgs, err := route.ParseRIB(route.RIBTypeRoute, m.buf[:n])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
m.logf("read %d bytes (% 02x), failed to parse RIB: %v", n, m.buf[:n], err)
|
m.logf("read %d bytes (% 02x), failed to parse RIB: %v", n, m.buf[:n], err)
|
||||||
return nil, nil
|
return unspecifiedMessage{}, nil
|
||||||
}
|
}
|
||||||
if debugRouteMessages {
|
if debugRouteMessages {
|
||||||
m.logf("read: %d bytes, %d msgs", n, len(msgs))
|
m.logf("read: %d bytes, %d msgs", n, len(msgs))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user