From bd4f6c99b8a72d287064545a6d3514b26680759c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Diemer?= <stephane.diemer@ubicast.eu>
Date: Wed, 17 May 2017 15:15:23 +0200
Subject: [PATCH] Fixed proxy parsing in Wowza setup.

---
 2.Common_services/4.Wowza/0_setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/2.Common_services/4.Wowza/0_setup.py b/2.Common_services/4.Wowza/0_setup.py
index 81486e0a..0971d705 100644
--- a/2.Common_services/4.Wowza/0_setup.py
+++ b/2.Common_services/4.Wowza/0_setup.py
@@ -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)
-- 
GitLab