forked from TrueCloudLab/lego
tencentcloud: support punycode domain (#1788)
This commit is contained in:
parent
6695fcc873
commit
339b62fdcd
1 changed files with 2 additions and 1 deletions
|
@ -38,7 +38,8 @@ func (d *DNSProvider) getHostedZone(domain string) (*dnspod.DomainListItem, erro
|
||||||
|
|
||||||
var hostedZone *dnspod.DomainListItem
|
var hostedZone *dnspod.DomainListItem
|
||||||
for _, zone := range domains {
|
for _, zone := range domains {
|
||||||
if *zone.Name == dns01.UnFqdn(authZone) {
|
unfqdn := dns01.UnFqdn(authZone)
|
||||||
|
if *zone.Name == unfqdn || *zone.Punycode == unfqdn {
|
||||||
hostedZone = zone
|
hostedZone = zone
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue