소스 검색

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

Matthew R. Kasun 3 년 전
부모
커밋
b1a640eb83
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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()