mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-09-24 14:20:09 +01:00
Issue #118: fix – resolve problems with whitelisting domains.
This commit is contained in:
+2
-1
@@ -292,7 +292,8 @@ def removeDupsAndExcl(mergeFile):
|
||||
if os.path.isfile(settings["whitelistfile"]):
|
||||
with open(settings["whitelistfile"], "r") as ins:
|
||||
for line in ins:
|
||||
if line.rstrip():
|
||||
line = line.strip(" \t\n\r")
|
||||
if line and not line.startswith("#"):
|
||||
settings["exclusions"].append(line)
|
||||
|
||||
if not os.path.exists(settings["outputpath"]):
|
||||
|
||||
Reference in New Issue
Block a user