misc updates
This commit is contained in:
parent
3d08ee9451
commit
1088d74b46
@ -50,13 +50,13 @@ def squid_response(response):
|
|||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
|
|
||||||
|
|
||||||
blacklist_cache=[]
|
blacklist_cache = []
|
||||||
blacklist_files = make_list(domain_files)
|
blacklist_files = make_list(domain_files)
|
||||||
blacklist_cache = make_db(blacklist_files)
|
blacklist_cache = make_db(blacklist_files)
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
line = sys.stdin.readline().strip()
|
l = sys.stdin.readline().strip()
|
||||||
outline = urlparse(line).netloc
|
outline = urlparse(l).netloc
|
||||||
if line:
|
if line:
|
||||||
if compare(outline,blacklist_cache,blacklists):
|
if compare(outline,blacklist_cache,blacklists):
|
||||||
squid_response("OK")
|
squid_response("OK")
|
||||||
|
Loading…
Reference in New Issue
Block a user