Skip to content

Commit

Permalink
fixup! Fix web-platform-tests#2669: Add alternate_hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
gsnedders committed Apr 30, 2018
1 parent e9d79d4 commit a9d3389
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/serve/serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,10 @@ def check_subdomains(domains, paths, bind_address, ssl_config, aliases):
"You may need to edit /etc/hosts or similar, see README.md." % (host, port))
sys.exit(1)

for domain in domains.itervalues():
for domain in domains_set.itervalues():
if domain == host:
continue

try:
urllib2.urlopen("http://%s:%d/" % (domain, port))
except Exception as e:
Expand Down

0 comments on commit a9d3389

Please sign in to comment.