Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 98e449e + 7fe1820 commit 4d3aa16Copy full SHA for 4d3aa16
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