diff --git a/tornet.yml b/tornet.yml index c686f97..10431fc 100644 --- a/tornet.yml +++ b/tornet.yml @@ -406,7 +406,7 @@ cd /etc/dnscrypt-proxy # 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 "\." >${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) if [ "$numhosts" -gt 200000 ] then