diff options
| author | Brad Fitzpatrick <bradfitz@tailscale.com> | 2025-09-12 14:23:12 -0700 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@tailscale.com> | 2025-09-12 14:23:12 -0700 |
| commit | 032d425a413fa92028705c3ce8314ff3a61ca168 (patch) | |
| tree | 51b55dff963677bc5f5bda5899081e1c3b9088b2 /net/netmon/netmon_linux.go | |
| parent | 0cc1b2ff76560ee4675909272fa37ba6b397744c (diff) | |
| download | tailscale-bradfitz/ios_ish.tar.xz tailscale-bradfitz/ios_ish.zip | |
Change-Id: I242111289aeb0c9a0ff843d698bc26168e336165
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
Diffstat (limited to 'net/netmon/netmon_linux.go')
| -rw-r--r-- | net/netmon/netmon_linux.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/netmon/netmon_linux.go b/net/netmon/netmon_linux.go index a1077c257..70aa50af3 100644 --- a/net/netmon/netmon_linux.go +++ b/net/netmon/netmon_linux.go @@ -17,6 +17,7 @@ import ( "tailscale.com/net/tsaddr" "tailscale.com/types/logger" "tailscale.com/util/eventbus" + "tailscale.com/version/distro" ) var debugNetlinkMessages = envknob.RegisterBool("TS_DEBUG_NETLINK") @@ -57,6 +58,10 @@ type nlConn struct { } func newOSMon(bus *eventbus.Bus, logf logger.Logf, m *Monitor) (osMon, error) { + if distro.Get() == distro.ISH { + println("XXX hi from ish") + return newPollingMon(logf, m) + } conn, err := netlink.Dial(unix.NETLINK_ROUTE, &netlink.Config{ // Routes get us most of the events of interest, but we need // address as well to cover things like DHCP deciding to give |
