Skip to content
Snippets Groups Projects
Commit bd4f6c99 authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Fixed proxy parsing in Wowza setup.

parent 4c28858c
No related branches found
No related tags found
No related merge requests found
......@@ -70,7 +70,7 @@ def setup(interactive=True):
end_index += start_index
http_proxy = utils.get_conf('PROXY_HTTP')
if http_proxy:
regexp = r'http(s){0,1}://(([\w_-]*)(:[\w_-]*){0,1}@){0,1}(.*)(:\d*){0,1}[/]*'
regexp = r'http(s){0,1}://(([\w_\-]*)(:[\w_\-]*){0,1}@){0,1}([\w_\-\.]*)(:[\d]*){0,1}[/]*'
m = re.match(regexp, http_proxy)
if not m:
raise ValueError('Invalid value for PROXY_HTTP (value do not match reg exp: %s).' % regexp)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment