1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-26 07:41:33 +03:00

make hostname lowercase before checking

This commit is contained in:
Seth Schoen
2012-11-18 20:22:42 -08:00
parent c6780679f4
commit 91c36318d7

View File

@@ -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: