tencentcloud: support punycode domain (#1788)

This commit is contained in:
Feng.YJ 2022-12-19 00:54:03 +08:00 committed by GitHub
parent 6695fcc873
commit 339b62fdcd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,7 +38,8 @@ func (d *DNSProvider) getHostedZone(domain string) (*dnspod.DomainListItem, erro
var hostedZone *dnspod.DomainListItem
for _, zone := range domains {
if *zone.Name == dns01.UnFqdn(authZone) {
unfqdn := dns01.UnFqdn(authZone)
if *zone.Name == unfqdn || *zone.Punycode == unfqdn {
hostedZone = zone
}
}