From 7feab30e72f5b2fa6fbf23017cafdfb474b5ab72 Mon Sep 17 00:00:00 2001 From: James Kasten Date: Sat, 11 Aug 2012 02:15:49 -0400 Subject: [PATCH] Import names from Apache --- client-webserver/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client-webserver/client.py b/client-webserver/client.py index 9a68c79c4..5c0f79cf0 100755 --- a/client-webserver/client.py +++ b/client-webserver/client.py @@ -197,10 +197,12 @@ def authenticate(): assert is_hostname_sane(server), `server` + " is an impossible hostname" upstream = "https://%s/chocolate.py" % server + config = configurator.Configurator() if not names: # TODO: automatically import names from Apache config - names = ["example.com", "www.example.com", "foo.example.com"] + #names = ["example.com", "www.example.com", "foo.example.com"] + names = config.get_all_names() if curses: names = filter_names(names) @@ -262,8 +264,6 @@ def authenticate(): if not curses: print sni_todo - config = configurator.Configurator() - config.get_virtual_hosts() vhost = set() for name in dn: host = config.choose_virtual_host(name)