File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4747from lib .core .common import paths
4848from lib .core .common import randomRange
4949from lib .core .common import randomStr
50+ from lib .core .common import readCachedFileContent
5051from lib .core .common import readInput
5152from lib .core .common import resetCookieJar
5253from lib .core .common import runningAsAdmin
@@ -1947,7 +1948,10 @@ def _setProxyList():
19471948 if not conf .proxyFile :
19481949 return
19491950
1950- conf .proxyList = getFileItems (conf .proxyFile )
1951+ conf .proxyList = []
1952+ for match in re .finditer (r"(?i)((http[^:]*|socks[^:]*)://)?([\w.]+):(\d+)" , readCachedFileContent (conf .proxyFile )):
1953+ _ , type_ , address , port = match .groups ()
1954+ conf .proxyList .append ("%s://%s:%s" % (type_ or "http" , address , port ))
19511955
19521956def _setTorProxySettings ():
19531957 if not conf .tor :
You can’t perform that action at this time.
0 commit comments