Browse Source

another one

Matthew R. Kasun 3 years ago
parent
commit
63c87ade73
1 changed files with 1 additions and 1 deletions
  1. 1 1
      netclient/functions/mqhandlers.go

+ 1 - 1
netclient/functions/mqhandlers.go

@@ -144,7 +144,7 @@ func NodeUpdate(client mqtt.Client, msg mqtt.Message) {
 	if newNode.DNSOn != "yes" && shouldDNSChange && nodeCfg.Node.Interface != "" {
 		ncutils.Log("settng DNS off")
 		if err := removeHostDNS(ncutils.IsWindows()); err != nil {
-			ncutils.Log("error removing netmaker profile from /etc/hosts " + dataErr.Error())
+			ncutils.Log("error removing netmaker profile from /etc/hosts " + err.Error())
 		}
 		//		_, err := ncutils.RunCmd("/usr/bin/resolvectl revert "+nodeCfg.Node.Interface, true)
 		//		if err != nil {