sandbox1
inpos 2016-03-12 15:14:37 +03:00
parent 2bd36fa5c9
commit 971817c888
1 changed files with 2 additions and 1 deletions

View File

@ -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