regex fix, thanks Paolo

This commit is contained in:
mdipierro
2019-05-04 10:20:44 -07:00
parent c258d10d15
commit 42528987af
2 changed files with 8 additions and 6 deletions
+2 -2
View File
@@ -116,8 +116,8 @@ load_routes()
HTTPS_SCHEMES = set(('https', 'HTTPS'))
# pattern used to validate client address
REGEX_CLIENT = re.compile(r'[\w:-]+(\.[\w-]+)*\.?') # ## to account for IPV6
# pattern used to match client IP address
REGEX_CLIENT = re.compile(r'[\w:]+(\.\w+)*')
def get_client(env):
"""