mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-18 06:41:20 +08:00
adding windows GetDefaultRoute
This commit is contained in:
@@ -358,6 +358,13 @@ func GetNetclientPathSpecific() string {
|
||||
}
|
||||
}
|
||||
|
||||
func CheckIPAddress(ip string) error {
|
||||
if net.ParseIP(ip) == nil {
|
||||
return fmt.Errorf("ip address %s is invalid", ip)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// GetNewIface - Gets the name of the real interface created on Mac
|
||||
func GetNewIface(dir string) (string, error) {
|
||||
files, _ := os.ReadDir(dir)
|
||||
|
Reference in New Issue
Block a user