Skip to content

Commit

Permalink
Include private domains (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
fupduck authored Jun 20, 2024
1 parent d01d568 commit 8d28a58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion certbot_dns_hetzner/dns_hetzner.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ def _setup_credentials(self):

@staticmethod
def _get_zone(domain):
zone_name = tldextract.extract(domain)
extract = tldextract.TLDExtract()
zone_name = extract(domain, include_psl_private_domains=True)
return '.'.join([zone_name.domain, zone_name.suffix])

def _perform(self, domain, validation_name, validation):
Expand Down

0 comments on commit 8d28a58

Please sign in to comment.