mirror of
https://github.com/fosrl/olm.git
synced 2026-05-18 06:09:54 +00:00
To aid CLI in cleaning up configuration we expose static functions that know how to handle each provider and platform linked to https://github.com/fosrl/cli/issues/38
23 lines
533 B
Go
23 lines
533 B
Go
//go:build android
|
|
|
|
package olm
|
|
|
|
import "net/netip"
|
|
|
|
// SetupDNSOverride is a no-op on Android
|
|
// Android handles DNS through the VpnService API at the Java/Kotlin layer
|
|
func SetupDNSOverride(interfaceName string, proxyIp netip.Addr) error {
|
|
return nil
|
|
}
|
|
|
|
// RestoreDNSOverride is a no-op on Android
|
|
func RestoreDNSOverride() error {
|
|
return nil
|
|
}
|
|
|
|
// CleanupStaleState is a no-op on Android as DNS configuration is handled by the VpnService API
|
|
func CleanupStaleState(interfaceName string) error {
|
|
_ = interfaceName
|
|
return nil
|
|
}
|