Skip to content

Commit 339b62f

Browse files
authored
tencentcloud: support punycode domain (#1788)
1 parent 6695fcc commit 339b62f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

providers/dns/tencentcloud/client.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ func (d *DNSProvider) getHostedZone(domain string) (*dnspod.DomainListItem, erro
3838

3939
var hostedZone *dnspod.DomainListItem
4040
for _, zone := range domains {
41-
if *zone.Name == dns01.UnFqdn(authZone) {
41+
unfqdn := dns01.UnFqdn(authZone)
42+
if *zone.Name == unfqdn || *zone.Punycode == unfqdn {
4243
hostedZone = zone
4344
}
4445
}

0 commit comments

Comments
 (0)