tencentcloud: fix InvalidParameter.DomainInvalid error when using DNS challenges (#1616)

This commit is contained in:
Charlie Chiang 2022-04-03 23:53:11 +08:00 committed by GitHub
parent 2c0aaf7fef
commit 6641400f41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,7 @@ func getDomainData(fqdn string) (*domainData, error) {
}
return &domainData{
domain: zone,
domain: dns01.UnFqdn(zone),
subDomain: dns01.UnFqdn(strings.TrimSuffix(fqdn, zone)),
}, nil
}