diff options
Diffstat (limited to 'nsupdate.go')
| -rw-r--r-- | nsupdate.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/nsupdate.go b/nsupdate.go index 84f607d..db33018 100644 --- a/nsupdate.go +++ b/nsupdate.go @@ -6,7 +6,6 @@ package main import ( - "log" "os" ) @@ -17,17 +16,17 @@ import ( func nsupdate() { var tsigSecret string - log.Println(true, "nsupdate() START") + debug(true, "nsupdate() START") cmd := "go-nsupdate --tsig-algorithm=hmac-sha512" tsigSecret = os.Getenv("TIG_SECRET") cmd += " --tig-secret=\"" + tsigSecret + "\"" cmd += " -i wlo1 " + me.hostname - log.Println(true, "nsupdate() RUN:", cmd) + debug(true, "nsupdate() RUN:", cmd) for s, t := range me.ipmap { if (t.IsReal()) { if (t.ipv6) { - log.Println(true, "nsupdate() found real AAAA =", s, "on iface", t.iface.Name) + debug(true, "nsupdate() found real AAAA =", s, "on iface", t.iface.Name) } } } |
