arblant
firefox-vpn-client / core / internal / tunstack / options_darwin.go
options_darwin.go14 lines · 565 B
1 2 3 4 5 6 7 8 9 10 11 12 13 14
package tunstack

import tun "github.com/sagernet/sing-tun"

// deviceName is a free utunN: macOS names its TUN devices itself.
func deviceName(string) string { return tun.CalculateInterfaceName("") }

// platformOptions: the service keeps DNS in and IPv6 out itself
// (internal/tunservice, filters_darwin.go); sing-tun routes the address
// space into the device in ranges more specific than the default route.
func platformOptions(*tun.Options, Config) {}

// CleanupStale: the device and its routes go with the process.
func CleanupStale() error { return nil }