AXFRDDNS: fix error message (fix #778) (#871)

This commit is contained in:
Grégoire Henry 2020-09-24 17:01:26 +02:00 committed by GitHub
parent 194aa09158
commit 9953bf41e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -194,7 +194,7 @@ func (c *AxfrDdns) FetchZoneRecords(domain string) ([]dns.RR, error) {
if err == "dns: bad xfr rcode: 9" {
err = "NOT AUTH (9)"
}
return nil, fmt.Errorf("[Error] AXFRDDNS: nameserver refused to transfer the zone: %s", msg)
return nil, fmt.Errorf("[Error] AXFRDDNS: nameserver refused to transfer the zone: %s", err)
}
rawRecords = append(rawRecords, msg.RR...)
}