mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-18 22:55:15 +08:00
allowing IsServer to be modified, configurable checkin time, single checkin for linux, moved cfg files
This commit is contained in:
@@ -91,10 +91,5 @@ func GetMacIface(ipstring string) (string, error) {
|
||||
}
|
||||
|
||||
func HasNetwork(network string) bool {
|
||||
|
||||
if ncutils.IsWindows() {
|
||||
return ncutils.FileExists(ncutils.GetNetclientPathSpecific() + "netconfig-" + network)
|
||||
}
|
||||
return ncutils.FileExists("/etc/systemd/system/netclient-"+network+".timer") ||
|
||||
ncutils.FileExists(ncutils.GetNetclientPathSpecific()+"netconfig-"+network)
|
||||
}
|
||||
|
Reference in New Issue
Block a user