aboutsummaryrefslogtreecommitdiff
path: root/dyndns.go
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2022-11-11 21:14:16 +0100
committerHimbeerserverDE <himbeerserverde@gmail.com>2022-11-11 21:14:16 +0100
commitef62755a25a8291762605d018fb4736d3b9e48da (patch)
treec5969ef56fa9e8c76c880acd39242516b00b5194 /dyndns.go
parent93ff2284207bc2708a36d1681e0d8c73433adb5b (diff)
upgrade inwx
Diffstat (limited to 'dyndns.go')
-rw-r--r--dyndns.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/dyndns.go b/dyndns.go
index 6b47117..37f0bfa 100644
--- a/dyndns.go
+++ b/dyndns.go
@@ -81,14 +81,14 @@ func nsUpdate6(conf *config, prefix *net.IPNet) error {
continue
}
- if len(record.Record) != 1 {
- logger.Printf("invalid number of IPv6 records: %d != 1", len(record.Record))
+ if n := len(record.Records); n != 1 {
+ logger.Printf("invalid number of IPv6 records: %d != 1", n)
continue
}
- addr := net.ParseIP(record.Record[0].Content)
+ addr := net.ParseIP(record.Records[0].Content)
if addr == nil {
- logger.Printf("invalid IPv6 record %d: %s", id, record.Record[0].Content)
+ logger.Printf("invalid IPv6 record %d: %s", id, record.Records[0].Content)
continue
}