From 04c1b5e8e935fbb2093cada9eced85e3dd9e1075 Mon Sep 17 00:00:00 2001 From: lution Date: Mon, 12 Dec 2016 13:58:34 +0800 Subject: [PATCH] update regex to support hostnames containing underscore --- 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}(?