mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-18 05:18:23 +00:00
wgengine: move link monitor to be owned by the engine, not the router
And make the monitor package portable with no-op implementations on unsupported operating systems. Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:

committed by
Brad Fitzpatrick

parent
09fbae01a9
commit
7f5e3febe5
@@ -12,7 +12,7 @@ import (
|
||||
|
||||
// NewFakeRouter returns a new fake Router implementation whose
|
||||
// implementation does nothing and always returns nil errors.
|
||||
func NewFakeRouter(logf logger.Logf, _ *device.Device, _ tun.Device, netChanged func()) (Router, error) {
|
||||
func NewFakeRouter(logf logger.Logf, _ *device.Device, _ tun.Device) (Router, error) {
|
||||
return fakeRouter{logf: logf}, nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user