Skip to content
Snippets Groups Projects
Commit c6725408 authored by ale's avatar ale
Browse files

Fix zone derivation from fqdn

parent baca71d6
No related branches found
No related tags found
No related merge requests found
Pipeline #67219 passed
......@@ -87,8 +87,8 @@ func (d *dnsValidator) client() *dns.Client {
}
func (d *dnsValidator) Fulfill(ctx context.Context, client *acme.Client, domain string, chal *acme.Challenge) (func(), error) {
zone := domain[strings.Index(domain, ".")+1:]
fqdn := dns.Fqdn(domain)
zone := domain[strings.Index(fqdn, ".")+1:]
value, err := client.DNS01ChallengeRecord(chal.Token)
if err != nil {
return nil, err
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment