Commit Graph
4 Commits
Author SHA1 Message Date
sneak 71774015db Detect interfaces per platform; add macOS and single-interface support (closes #2)
check / check (push) Failing after 1s
Linux runs exactly as before when both bridge interfaces exist. When they do
not, the lone default-route interface is monitored, and a single interface now
draws a single UI pane instead of an empty second one.

macOS is newly supported: a running VPN tunnel (utun) is monitored as the
primary pane alongside the physical default-route interface, or the physical
interface alone when no VPN is up.

Detection lives in internal/netdetect: interface/route data types, pure
selection logic keyed on OS name, and route parsers, all unit-tested on Linux
for both platforms. Only the real route query and the per-platform TCP dial
binding (source address on Linux, IP_BOUND_IF on macOS) are build-tagged. Ping
argument construction is a pure, OS-keyed function. NewMonitor now takes a list
of interfaces.

Model: opus-4-8
2026-09-21 07:52:50 +00:00
sneak a8ab26752a initial 2026-01-06 10:20:34 -08:00
sneak 29b96b3405 fix import 2025-05-21 11:29:36 -07:00
sneak 31936b21a2 add module 2025-05-16 04:29:55 -07:00