diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2022-11-11 21:14:16 +0100 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2022-11-11 21:14:16 +0100 |
commit | ef62755a25a8291762605d018fb4736d3b9e48da (patch) | |
tree | c5969ef56fa9e8c76c880acd39242516b00b5194 /dyndns.go | |
parent | 93ff2284207bc2708a36d1681e0d8c73433adb5b (diff) |
upgrade inwx
Diffstat (limited to 'dyndns.go')
-rw-r--r-- | dyndns.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 } |