check / check (push) Failing after 0s
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 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 are build-tagged. NewMonitor now takes a list of interfaces. Not verified on a real mac: live netstat parsing, IP_BOUND_IF dialing, Mullvad leak protection. Model: opus-4-8 (implementation); fable-5-1 (landing commit)
13 lines
340 B
Go
13 lines
340 B
Go
//go:build linux
|
|
|
|
package monitor
|
|
|
|
import "syscall"
|
|
|
|
// bindControl returns no socket control hook on Linux: binding the dialer's
|
|
// local source address (as tcpDuration already does) is enough to send
|
|
// traffic out of the chosen interface.
|
|
func bindControl(_ string) func(network, address string, c syscall.RawConn) error {
|
|
return nil
|
|
}
|