tornet.yml aktualisiert
This commit is contained in:
parent
8c3e27e1d7
commit
965f8b92e6
@ -406,7 +406,7 @@
|
|||||||
cd /etc/dnscrypt-proxy
|
cd /etc/dnscrypt-proxy
|
||||||
|
|
||||||
# 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 "\." >${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 200000 ]
|
||||||
then
|
then
|
||||||
|
Loading…
Reference in New Issue
Block a user