Minor fix for Little Snitch

This commit is contained in:
Imre Kristoffer Eilertsen
2020-11-21 04:55:41 +01:00
committed by GitHub
parent 358949f57a
commit 10c5bbde72
2 changed files with 9 additions and 3 deletions
@@ -394,7 +394,7 @@
{ "action": "deny", "process": "any", "remote-addresses": "195.88.54.21" },
{ "action": "deny", "process": "any", "remote-addresses": "195.88.55.21" },
{ "action": "deny", "process": "any", "remote-addresses": "196.196.230.76" },
{ "action": "deny", "process": "any", "remote-addresses": "2001:67c:21e0::ad" },
@@ -2733,8 +2733,8 @@ def prepare_ls(lines) -> str:
)
line = re.sub(
r"remote-domains(\": \"[0-9a-f:]{4,39})$",
r'remote-addresses\1" },',
r".*remote-domains(\": \"[0-9a-f:]{4,39})$",
r'',
line
)
@@ -5164,6 +5164,12 @@ def prepare_domains(lines) -> str:
line
)
line = re.sub(
r"^(# Description: .*)",
r"\1 Note that this list version is only meant for lists that support no adblocker syntaxes whatsoever, such as Pi-Hole, Blokada, DNS66, and uMatrix.",
line
)
if is_supported_domains(line) and not line == '':
text += line + '\r\n'