mirror of
https://github.com/tailscale/tailscale.git
synced 2025-05-06 07:37:38 +00:00
cmd/tailscaled: let net/netmon know what our TUN interface is
Updates #5794 Change-Id: Ia7e71c32e6c0cd79eb32b6c2c2d4e9a6d8c3e4d6 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
parent
5df06612aa
commit
21d12ec522
@ -751,6 +751,12 @@ func tryEngine(logf logger.Logf, sys *tsd.System, name string) (onlyNetstack boo
|
||||
return false, err
|
||||
}
|
||||
|
||||
if runtime.GOOS == "plan9" {
|
||||
// TODO(bradfitz): why don't we do this on all platforms?
|
||||
// We should. Doing it just on plan9 for now conservatively.
|
||||
sys.NetMon.Get().SetTailscaleInterfaceName(devName)
|
||||
}
|
||||
|
||||
r, err := router.New(logf, dev, sys.NetMon.Get(), sys.HealthTracker())
|
||||
if err != nil {
|
||||
dev.Close()
|
||||
|
Loading…
x
Reference in New Issue
Block a user