diff options
| author | Jeff Carr <[email protected]> | 2023-12-16 09:02:59 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-12-16 09:02:59 -0600 |
| commit | 27696b976485f989d664f330e9c328de93e8e672 (patch) | |
| tree | 3fd2fe38e90e78d782e6f65cc726de8c54fa7c18 /nsupdate.go | |
| parent | dbd81e9462846f716ba4cebe383d2215e01ce563 (diff) | |
gocui mode works again
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'nsupdate.go')
| -rw-r--r-- | nsupdate.go | 7 |
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) } } } |
