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

This commit is contained in:
Matthew R. Kasun 2022-03-18 15:53:59 -04:00
parent 58988706d9
commit b1a640eb83

View file

@ -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()