mirror of
https://github.com/DandelionSprout/adfilt.git
synced 2026-10-04 07:51:08 +01:00
Minor fix for Little Snitch
This commit is contained in:
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user