From 392e54e5086ce8b3617f6aab8b7e54fe516a0c41 Mon Sep 17 00:00:00 2001 From: Lution Date: Mon, 2 Jan 2017 14:56:57 +0800 Subject: [PATCH] update regex to support hostnames containing underscore (#694) --- shadowsocks/asyncdns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shadowsocks/asyncdns.py b/shadowsocks/asyncdns.py index 91601ea..fa5be41 100644 --- a/shadowsocks/asyncdns.py +++ b/shadowsocks/asyncdns.py @@ -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}(?