Update gfw-pac.py

This commit is contained in:
AroKz
2018-01-07 18:43:10 +08:00
committed by GitHub
parent 1756ab849f
commit afb549d417

View File

@@ -270,7 +270,9 @@ def main():
# Yeah, it's an URL, try to download it
print 'Downloading user rules file from %s' % args.user_rule
direct_rule = urllib2.urlopen(args.direct_rule, timeout=10).read()
direct_rule = direct_rule.splitlines(False)
direct_rule = direct_rule.splitlines(False)
else:
direct_rule = []
cnips = fetch_ip_data()