Explorar el Código

temp code to remove netmaker profiles from /etc/hosts on daemon start

Matthew R. Kasun hace 3 años
padre
commit
b1a640eb83
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      netclient/functions/daemon.go

+ 3 - 0
netclient/functions/daemon.go

@@ -38,6 +38,9 @@ func Daemon() error {
 	// == initial pull of all networks ==
 	networks, _ := ncutils.GetSystemNetworks()
 	for _, network := range networks {
+		//temporary code --- remove in version v0.13.0
+		removeHostDNS(network, ncutils.IsWindows())
+		// end of code to be removed in version v0.13.0
 		var cfg config.ClientConfig
 		cfg.Network = network
 		cfg.ReadConfig()