mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-21 17:56:39 +00:00
26 lines
708 B
Go
26 lines
708 B
Go
//go:build ios || android
|
|
|
|
package net
|
|
|
|
// Init initializes the network environment for mobile platforms.
|
|
func Init() {
|
|
// no-op on mobile: routing scope is owned by the VPN extension.
|
|
}
|
|
|
|
// AdvancedRouting reports whether routing loops can be avoided without using exclusion routes.
|
|
// Always returns true on mobile since routes cannot be handled dynamically and the VPN extension
|
|
// owns the routing scope.
|
|
func AdvancedRouting() bool {
|
|
return true
|
|
}
|
|
|
|
// SetVPNInterfaceName is a no-op on mobile.
|
|
func SetVPNInterfaceName(string) {
|
|
// no-op on mobile: the VPN extension manages the interface.
|
|
}
|
|
|
|
// GetVPNInterfaceName returns an empty string on mobile.
|
|
func GetVPNInterfaceName() string {
|
|
return ""
|
|
}
|