luadns: removed dot suffix from authzone while searching for zone (#1796)

This commit is contained in:
h0m1 2023-01-04 11:09:51 +01:00 committed by GitHub
parent 368427a621
commit 33b3399b3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -124,7 +124,7 @@ func (d *DNSProvider) Present(domain, token, keyAuth string) error {
return fmt.Errorf("luadns: failed to find zone: %w", err)
}
zone := findZone(zones, authZone)
zone := findZone(zones, dns01.UnFqdn(authZone))
if zone == nil {
return fmt.Errorf("luadns: no matching zone found for domain %s", domain)
}