Commit b87f2471 authored by Pascal Meunier's avatar Pascal Meunier

last resort guessing weber proxy URL now implemented in Session class

parent 2e68923f
......@@ -555,13 +555,13 @@ class Session:
# add host
if 'FRONT_LISTEN_HOST' in proxy_vars:
if proxy_vars['FRONT_LISTEN_HOST'] == '':
prefix = prefix + guess_weber_proxy(hub_url)
prefix = prefix + Session.guess_weber_proxy(hub_url)
else:
if DEBUG:
log("DEBUG: front listen host is '%s'" % str(proxy_vars['FRONT_LISTEN_HOST']))
prefix = prefix + str(proxy_vars['FRONT_LISTEN_HOST'])
else:
prefix = prefix + guess_weber_proxy(hub_url)
prefix = prefix + Session.guess_weber_proxy(hub_url)
# add port
if 'FRONT_LISTEN_PORT' in proxy_vars:
if proxy_vars['FRONT_LISTEN_PORT'] == 443:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment