summaryrefslogtreecommitdiff
path: root/nsupdate.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-12-16 09:02:59 -0600
committerJeff Carr <[email protected]>2023-12-16 09:02:59 -0600
commita33eca708a44bb8b9af1790413d56236dc504295 (patch)
treee5a629088b5b5b92219ccd6b8b2365118f4a897b /nsupdate.go
parent7317b3d124c2c75423d8a7311ceec3c12ec71dd3 (diff)
gocui mode works again
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'nsupdate.go')
-rw-r--r--nsupdate.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/nsupdate.go b/nsupdate.go
index af873a2..84f607d 100644
--- a/nsupdate.go
+++ b/nsupdate.go
@@ -6,6 +6,7 @@
package main
import (
+ "log"
"os"
)
@@ -16,17 +17,17 @@ import (
func nsupdate() {
var tsigSecret string
- log(true, "nsupdate() START")
+ log.Println(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(true, "nsupdate() RUN:", cmd)
+ log.Println(true, "nsupdate() RUN:", cmd)
for s, t := range me.ipmap {
if (t.IsReal()) {
if (t.ipv6) {
- log(true, "nsupdate() found real AAAA =", s, "on iface", t.iface.Name)
+ log.Println(true, "nsupdate() found real AAAA =", s, "on iface", t.iface.Name)
}
}
}