geoip-geosite-with-ru-block.../data/az-cyrillic-idn-fix.patch

14 lines
746 B
Diff
Raw Normal View History

2023-11-11 19:49:22 +03:00
diff --git a/parse.sh b/parse.sh
index c15aba6..c840f3f 100755
--- a/parse.sh
+++ b/parse.sh
@@ -7,7 +7,7 @@ HERE="$(dirname "$(readlink -f "${0}")")"
cd "$HERE"
# Extract domains from list
-awk -F ';' '{print $2}' temp/list.csv | sort -u | awk '/^$/ {next} /\\/ {next} /^[а-яА-Яa-zA-Z0-9\-\_\.\*]*+$/ {gsub(/\*\./, ""); gsub(/\.$/, ""); print}' | CHARSET=UTF-8 idn > result/hostlist_original.txt
+awk -F ';' '{print $2}' temp/list.csv | sort -u | awk '/^$/ {next} /\\/ {next} /^[а-яА-Яa-zA-Z0-9\-\_\.\*]*+$/ {gsub(/\*\./, ""); gsub(/\.$/, ""); print}' | grep -Fv 'bеllonа' | CHARSET=UTF-8 idn > result/hostlist_original.txt
# Generate zones from domains
# FIXME: nxdomain list parsing is disabled due to its instability on z-i