diff options
author | 10se1ucgo <hammaadu1@gmail.com> | 2015-08-25 01:08:53 +0300 |
---|---|---|
committer | 10se1ucgo <hammaadu1@gmail.com> | 2015-08-25 01:08:53 +0300 |
commit | 0d1ac5ed516d5bb2a9f69e17334347651bed4d7f (patch) | |
tree | ff4e1934fa0b86636ea4c630591669d04e0d4257 | |
parent | 27a841b6736ce1bb1d81b2a1fc3870b2bb501f6a (diff) |
I'm an idiot.
I added 0.0.0.0 to the list, and forgot to exclude it in the reversion process, so it assumed everything with 0.0.0.0 was a tracking domain added by by the script.
-rw-r--r-- | run.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -267,7 +267,7 @@ def modifyhosts(extra, undo): try: with open(hostspath, 'r') as hostfile, open(hostspath + "temp", 'w') as tempfile: for line in hostfile: - if not any(domain in line for domain in normallist + extralist): + if not any(domain in line for domain in normallist[1:] + extralist): tempfile.write(line) os.remove(hostspath) |