update regex to support hostnames containing underscore (#694)
This commit is contained in:
parent
bdefeb523f
commit
392e54e508
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ from shadowsocks import common, lru_cache, eventloop, shell
|
|||
|
||||
CACHE_SWEEP_INTERVAL = 30
|
||||
|
||||
VALID_HOSTNAME = re.compile(br"(?!-)[A-Z\d-]{1,63}(?<!-)$", re.IGNORECASE)
|
||||
VALID_HOSTNAME = re.compile(br"(?!-)[A-Z\d\-_]{1,63}(?<!-)$", re.IGNORECASE)
|
||||
|
||||
common.patch_socket()
|
||||
|
||||
|
|
Loading…
Reference in a new issue