macOS: show the VPN pane only while a VPN is connected (closes #8) #15

Merged
clawbot merged 1 commits from issue-8-mac-vpn-connected into next 2026-10-03 15:26:40 +02:00
1 Commits
Author SHA1 Message Date
sneak aaed90664b macOS: show the VPN pane only while a VPN is connected (closes #8)
check / check (push) Failing after 4s
A utun tunnel counted as the VPN whenever it was up with a routable
IPv4 address, so idle Tailscale or a tunnel left behind by a
disconnected client became the VPN pane and its probes failed. A
tunnel is now the VPN only while it carries the IPv4 default route in
netstat: an unscoped default row, or both 0/1 and 128.0/1 rows on it.
A default row scoped to a tunnel (flag I) does not count; on the
physical interface it still does, since a VPN holding the default
leaves the physical default scoped. Tests feed netstat text in the
macOS layout through the parser into Select.

Model: opus-5-5
2026-10-03 13:08:00 +00:00