Skip to content

Commit

Permalink
fixup! Make it possible to disable the check that subdomains are acce…
Browse files Browse the repository at this point in the history
…ssible.
  • Loading branch information
jgraham committed Jan 14, 2014
1 parent 682e314 commit 7f1fbfd
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions serve.py
Expand Up @@ -119,14 +119,10 @@ def check_subdomains(config, subdomains):
return rv

def get_subdomains(config):
rv = {}
#This assumes that the tld is ascii-only or already in punycode
host = config["host"]

for subdomain in subdomains:
punycode = subdomain.encode("idna")
rv[subdomain] = (punycode, host)
return rv
return {subdomain: (subdomain.encode("idna"), host)
for subdomain in subdomains}

def start_servers(config, ports):
servers = defaultdict(list)
Expand Down

0 comments on commit 7f1fbfd

Please sign in to comment.