Fix variable name

This commit is contained in:
Kevin MacMartin 2024-06-24 23:09:47 -04:00
parent 4c5da710e1
commit 8363878c87

View file

@ -29,7 +29,7 @@ func contains(c api.Config, val string) bool {
}
func updateDNSRecord(a api.API, domain, recordID string, newRecord api.DNSRecord) error {
addr := net.ParseIP(record.Content)
addr := net.ParseIP(newRecord.Content)
if addr != nil {
log.Logger.Printf("Deleting DNS record for %s.\n", newRecord.Name)