tornet.yml aktualisiert

This commit is contained in:
olli 2023-09-27 08:30:49 +02:00
parent cec4c1377a
commit 04beef742f

View File

@ -408,7 +408,7 @@
# get hosts blocklist from https://github.com/StevenBlack/hosts # get hosts blocklist from https://github.com/StevenBlack/hosts
g_runcmd wget https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts -O - | grep "^0\.0\.0\.0 " | cut -d" " -f2 | grep "\." | egrep -v '^\.|\.$' >${g_tmp}/blocked-names.txt g_runcmd wget https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts -O - | grep "^0\.0\.0\.0 " | cut -d" " -f2 | grep "\." | egrep -v '^\.|\.$' >${g_tmp}/blocked-names.txt
numhosts=$(cat ${g_tmp}/blocked-names.txt | wc -l) numhosts=$(cat ${g_tmp}/blocked-names.txt | wc -l)
if [ "$numhosts" -gt 200000 ] if [ "$numhosts" -gt 50000 ]
then then
cat ${g_tmp}/blocked-names.txt >blocked-names.txt cat ${g_tmp}/blocked-names.txt >blocked-names.txt
else else