wgengine/monitor: fix crash on Linux on type 21 messages

Fixes #532
This commit is contained in:
Brad Fitzpatrick
2020-07-07 10:44:54 -07:00
parent c1cabe75dc
commit 4b75a27969
3 changed files with 9 additions and 7 deletions

View File

@@ -48,9 +48,3 @@ func (c *devdConn) Receive() (message, error) {
return unspecifiedMessage{}, nil
}
}
// unspecifiedMessage is a minimal message implementation that should not
// be ignored. TODO: make specific messages like monitor_linux.go.
type unspecifiedMessage struct{}
func (unspecifiedMessage) ignore() bool { return false }