tornet.yml aktualisiert
This commit is contained in:
parent
368861cce6
commit
85ec23756a
18
tornet.yml
18
tornet.yml
@ -418,6 +418,24 @@
|
|||||||
[ -s blocked-names-local-additions.txt ] && cat blocked-names-local-additions.txt >>blocked-names.txt
|
[ -s blocked-names-local-additions.txt ] && cat blocked-names-local-additions.txt >>blocked-names.txt
|
||||||
systemctl restart dnscrypt-proxy
|
systemctl restart dnscrypt-proxy
|
||||||
|
|
||||||
|
# Check for using DoHoT
|
||||||
|
if [ -s /etc/dontusedohot ]
|
||||||
|
then
|
||||||
|
if [ -e /etc/systemd/resolved.conf.d/DoHoT.conf ]
|
||||||
|
then
|
||||||
|
sudo rm -f /etc/systemd/resolved.conf.d/DoHoT.conf
|
||||||
|
sudo systemctl restart systemd-resolved.service
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
if [ -s /etc/dnscrypt-proxy/blocked-names.txt ]
|
||||||
|
then
|
||||||
|
echo "[Resolve]
|
||||||
|
DNS=127.0.2.1
|
||||||
|
Domains=~." | sudo tee /etc/systemd/resolved.conf.d/DoHoT.conf
|
||||||
|
sudo systemctl restart systemd-resolved.service
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
cd -
|
cd -
|
||||||
backup: yes
|
backup: yes
|
||||||
validate: /bin/bash -n %s
|
validate: /bin/bash -n %s
|
||||||
|
Loading…
Reference in New Issue
Block a user