cloudflare: removed dot suffix from authzone while searching for zone. (#672)

This commit is contained in:
muratmoon 2018-10-14 22:11:35 +03:00 committed by Ludovic Fernandez
parent 484f0e5e35
commit 160d6fe603

View file

@ -114,7 +114,7 @@ func (d *DNSProvider) Present(domain, token, keyAuth string) error {
return fmt.Errorf("cloudflare: %v", err)
}
zoneID, err := d.client.ZoneIDByName(authZone)
zoneID, err := d.client.ZoneIDByName(acme.UnFqdn(authZone))
if err != nil {
return fmt.Errorf("cloudflare: failed to find zone %s: %v", authZone, err)
}
@ -149,7 +149,7 @@ func (d *DNSProvider) CleanUp(domain, token, keyAuth string) error {
return fmt.Errorf("cloudflare: %v", err)
}
zoneID, err := d.client.ZoneIDByName(authZone)
zoneID, err := d.client.ZoneIDByName(acme.UnFqdn(authZone))
if err != nil {
return fmt.Errorf("cloudflare: failed to find zone %s: %v", authZone, err)
}