fix: add ipv6 to dnscrypt-proxy blocklist

This commit is contained in:
MDLeom 2025-06-22 10:05:17 +00:00
parent 355338e407
commit af67343335
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 3 additions and 3 deletions

View File

@ -411,15 +411,15 @@ sed "1i $COMMENT_ONLINE" | \
sed "1s/Domains/Names/" > "../public/urlhaus-filter-dnscrypt-blocked-names-online.txt"
# IPv4/6
if grep -Eq "^(([0-9]{1,3}[\.]){3}[0-9]{1,3}$|\[)" "phishing-notop-domains.txt"; then
if grep -Eq "^(([0-9]{1,3}[\.]){3}[0-9]{1,3}$|\[)" "malware-domains.txt"; then
cat "malware-domains.txt" | \
grep -E "^([0-9]{1,3}[\.]){3}[0-9]{1,3}$" | \
grep -E "^(([0-9]{1,3}[\.]){3}[0-9]{1,3}$|\[)" | \
sed -r "s/\[|\]//g" | \
sed "1i $COMMENT" | \
sed "1s/Domains/IPs/" > "../public/urlhaus-filter-dnscrypt-blocked-ips.txt"
cat "malware-domains-online.txt" | \
grep -E "^([0-9]{1,3}[\.]){3}[0-9]{1,3}$" | \
grep -E "^(([0-9]{1,3}[\.]){3}[0-9]{1,3}$|\[)" | \
sed -r "s/\[|\]//g" | \
sed "1i $COMMENT_ONLINE" | \
sed "1s/Domains/IPs/" > "../public/urlhaus-filter-dnscrypt-blocked-ips-online.txt"