From 28a63046407bcbccdc489af9239da9666ff02673 Mon Sep 17 00:00:00 2001 From: MDLeom <2809763-curben@users.noreply.gitlab.com> Date: Wed, 8 Jul 2020 11:28:35 +0100 Subject: [PATCH] fix: compatibility with Adguard Home - https://gitlab.com/curben/urlhaus-filter/-/issues/19 --- src/script.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/script.sh b/src/script.sh index 8fe73aa5..b24deb77 100644 --- a/src/script.sh +++ b/src/script.sh @@ -101,7 +101,13 @@ FIFTH_LINE="! License: https://creativecommons.org/publicdomain/zero/1.0/" SIXTH_LINE="! Source: https://www.phishtank.com/" COMMENT_UBO="$FIRST_LINE\n$SECOND_LINE\n$THIRD_LINE\n$FOURTH_LINE\n$FIFTH_LINE\n$SIXTH_LINE" -cat "phishing-domains.txt" "phishing-url-top-domains.txt" | \ +# Compatibility with Adguard Home +# https://gitlab.com/curben/urlhaus-filter/-/issues/19 +cat "phishing-domains.txt" | \ +sed "s/^/||/g" | \ +sed "s/$/^/g" > "phishing-domains-adguard.txt" + +cat "phishing-domains-adguard.txt" "phishing-url-top-domains.txt" | \ sort | \ sed '1 i\'"$COMMENT_UBO"'' > "../dist/phishing-filter.txt"