mirror of
https://github.com/fosrl/newt.git
synced 2026-02-08 05:56:40 +00:00
Add noop for android ios
This commit is contained in:
@@ -44,9 +44,13 @@ func ConfigureInterface(interfaceName string, tunnelIp string, mtu int) error {
|
|||||||
return configureDarwin(interfaceName, ip, ipNet)
|
return configureDarwin(interfaceName, ip, ipNet)
|
||||||
case "windows":
|
case "windows":
|
||||||
return configureWindows(interfaceName, ip, ipNet)
|
return configureWindows(interfaceName, ip, ipNet)
|
||||||
default:
|
case "android":
|
||||||
return fmt.Errorf("unsupported operating system: %s", runtime.GOOS)
|
return nil
|
||||||
|
case "ios":
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// waitForInterfaceUp polls the network interface until it's up or times out
|
// waitForInterfaceUp polls the network interface until it's up or times out
|
||||||
|
|||||||
Reference in New Issue
Block a user