mirror of
https://github.com/certbot/certbot.git
synced 2026-03-24 19:35:29 -04:00
make hostname lowercase before checking
This commit is contained in:
parent
c6780679f4
commit
91c36318d7
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ def in_top_10k(hostname):
|
|||
# That includes subdomains of top 10,000 sites, but not if the subdomain
|
||||
# is below a public suffix (such as a dynamic DNS provider or hosting
|
||||
# umbrella, perhaps)
|
||||
parts = hostname.split(".")
|
||||
parts = hostname.lower().split(".")
|
||||
for n in range(2, len(parts)+1):
|
||||
name_or_parent = ".".join(parts[-n:])
|
||||
if name_or_parent in top_10k:
|
||||
|
|
|
|||
Loading…
Reference in a new issue