tornet.yml aktualisiert

This commit is contained in:
olli 2023-08-07 14:23:47 +02:00
parent 368861cce6
commit 85ec23756a

View File

@ -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