Fix: DNSimple passes not-a-FQDN string to FindZoneByFqdn()

This commit is contained in:
JanB 2016-04-17 04:43:43 +02:00
parent 094e3d41bb
commit 65321943ba

View file

@ -79,7 +79,7 @@ func (c *DNSProvider) getHostedZone(domain string) (string, string, error) {
return "", "", fmt.Errorf("DNSimple API call failed: %v", err)
}
authZone, err := acme.FindZoneByFqdn(domain, acme.RecursiveNameservers)
authZone, err := acme.FindZoneByFqdn(acme.ToFqdn(domain), acme.RecursiveNameservers)
if err != nil {
return "", "", err
}