From 12ca8e09aa0f50d17692177c1b4ea5062dd698e1 Mon Sep 17 00:00:00 2001 From: 0xdcarns Date: Thu, 10 Mar 2022 15:46:48 -0500 Subject: [PATCH] update logs --- netclient/functions/mqhandlers.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/netclient/functions/mqhandlers.go b/netclient/functions/mqhandlers.go index 2e57ba84..33a3c855 100644 --- a/netclient/functions/mqhandlers.go +++ b/netclient/functions/mqhandlers.go @@ -196,16 +196,17 @@ func UpdatePeers(client mqtt.Client, msg mqtt.Message) { ncutils.Log("error syncing wg after peer update: " + err.Error()) return } + ncutils.Log("received peer update for node " + cfg.Node.Name + " " + cfg.Node.Network) //skip dns updates if this is a peer update for comms network if cfg.Node.NetworkSettings.IsComms == "yes" { return } - ncutils.Log("DNS updating /etc/hosts") if cfg.Node.DNSOn == "yes" { if err := setHostDNS(peerUpdate.DNS, ncutils.IsWindows()); err != nil { ncutils.Log("error updating /etc/hosts " + err.Error()) return } + ncutils.Log("DNS updating /etc/hosts") } else { if err := removeHostDNS(ncutils.IsWindows()); err != nil { ncutils.Log("error removing netmaker profile from /etc/hosts " + err.Error())