sandbox1
parent
2bd36fa5c9
commit
971817c888
|
@ -42,7 +42,7 @@ def config():
|
|||
pac_data = urllib2.urlopen(PAC_URL).read()
|
||||
except:
|
||||
pac_data = ""
|
||||
log("[antizapret]: +++++++++++ pac_data %s" % (repr(pac_data),))
|
||||
|
||||
r = re.search(r"\"PROXY (.*); DIRECT", pac_data)
|
||||
if r:
|
||||
pac_config["server"] = r.group(1)
|
||||
|
@ -50,6 +50,7 @@ def config():
|
|||
else:
|
||||
pac_config["server"] = None
|
||||
pac_config["domains"] = []
|
||||
log("[antizapret]: +++++++++++ pac_config %s" % (repr(pac_config),))
|
||||
_config = pac_config
|
||||
return _config
|
||||
|
||||
|
|
Loading…
Reference in New Issue