Browse Source

DNS VALID_HOSTNAME add underline

dev
BreakWa11 9 years ago
parent
commit
14edb58281
  1. 2
      shadowsocks/asyncdns.py

2
shadowsocks/asyncdns.py

@ -35,7 +35,7 @@ from shadowsocks import common, lru_cache, eventloop, shell
CACHE_SWEEP_INTERVAL = 30 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() common.patch_socket()

Loading…
Cancel
Save