mirror of
https://github.com/fosrl/olm.git
synced 2026-02-08 05:56:41 +00:00
Add stub
This commit is contained in:
18
dns/override/dns_override_android.go
Normal file
18
dns/override/dns_override_android.go
Normal 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
|
||||||
|
}
|
||||||
17
dns/override/dns_override_ios.go
Normal file
17
dns/override/dns_override_ios.go
Normal 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
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user