Allow port in hostname only config

This commit is contained in:
samwiseg0 2018-12-22 21:33:02 -04:00
parent 38c0213ead
commit b7e5c9d580

View file

@ -65,7 +65,7 @@ class INIParser(object):
search = (r'(?:([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}|' # domain...
r'localhost|' # localhost...
r'^[a-zA-Z0-9_-]*$|'
r'^[a-zA-Z0-9_-]*|'
r'\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})' # ...or ip
)