This commit is contained in:
Owen
2025-12-29 17:49:58 -05:00
parent 8152d4133f
commit ece4239aaa
2 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
//go:build android
package olm
import (
"github.com/fosrl/olm/dns"
)
// SetupDNSOverride is a no-op on Android
// Android handles DNS through the VpnService API at the Java/Kotlin layer
func SetupDNSOverride(interfaceName string, dnsProxy *dns.DNSProxy) error {
return nil
}
// RestoreDNSOverride is a no-op on Android
func RestoreDNSOverride() error {
return nil
}

View File

@@ -0,0 +1,17 @@
//go:build ios
package olm
import (
"github.com/fosrl/olm/dns"
)
// SetupDNSOverride is a no-op on iOS as DNS configuration is handled by the system
func SetupDNSOverride(interfaceName string, dnsProxy *dns.DNSProxy) error {
return nil
}
// RestoreDNSOverride is a no-op on iOS as DNS configuration is handled by the system
func RestoreDNSOverride() error {
return nil
}