[client] Replace exclusion routes with scoped default + IP_BOUND_IF on macOS (#5918)

This commit is contained in:
Viktor Liu
2026-04-20 17:01:01 +09:00
committed by GitHub
parent 8ae8f2098f
commit 2e0e3a3601
18 changed files with 579 additions and 119 deletions

View File

@@ -0,0 +1,10 @@
//go:build (dragonfly || freebsd || netbsd || openbsd) && !darwin
package systemops
// Non-darwin BSDs don't support the IP_BOUND_IF + scoped default model. They
// always fall through to the ref-counter exclusion-route path; these stubs
// exist only so systemops_unix.go compiles.
func (r *SysOps) setupAdvancedRouting() error { return nil }
func (r *SysOps) cleanupAdvancedRouting() error { return nil }
func (r *SysOps) flushPlatformExtras() error { return nil }