Browse Source

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

Matthew R. Kasun 3 years ago
parent
commit
b1a640eb83
1 changed files with 3 additions and 0 deletions
  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()