We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98e449e commit 7fe1820Copy full SHA for 7fe1820
1 file changed
lib/core/option.py
@@ -2324,7 +2324,7 @@ def _setProxyList():
2324
return
2325
2326
conf.proxyList = []
2327
- for match in re.finditer(r"(?i)((http[^:]*|socks[^:]*)://)?([\w.]+):(\d+)", readCachedFileContent(conf.proxyFile)):
+ for match in re.finditer(r"(?i)((http[^:]*|socks[^:]*)://)?([\w\-.]+):(\d+)", readCachedFileContent(conf.proxyFile)):
2328
_, type_, address, port = match.groups()
2329
conf.proxyList.append("%s://%s:%s" % (type_ or "http", address, port))
2330
0 commit comments