From 339b62fdcd35d2c2c772be6e20618eb487e9947a Mon Sep 17 00:00:00 2001 From: "Feng.YJ" Date: Mon, 19 Dec 2022 00:54:03 +0800 Subject: [PATCH] tencentcloud: support punycode domain (#1788) --- providers/dns/tencentcloud/client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/providers/dns/tencentcloud/client.go b/providers/dns/tencentcloud/client.go index 84643133..1c15ee38 100644 --- a/providers/dns/tencentcloud/client.go +++ b/providers/dns/tencentcloud/client.go @@ -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 } }