Skip to content

Commit

Permalink
qzeleza#241 отступы
Browse files Browse the repository at this point in the history
  • Loading branch information
AltGrF13 authored and AltGrF13 committed Dec 11, 2024
1 parent 7a0736f commit bcec1c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions opt/bin/libs/vpn
Original file line number Diff line number Diff line change
Expand Up @@ -2410,13 +2410,13 @@ cmd_dns_crypt_on() {
ready "Шифрование DNS"
{
# кэш
sed -i "s/\(^cache.=.\).*$/\1true/g" '/opt/etc/dnscrypt-proxy.toml'
sed -i "s/\(^cache_min_ttl.=.\).*$/\115/g" '/opt/etc/dnscrypt-proxy.toml'
sed -i "s/\(^cache.=.\).*$/\1true/g" '/opt/etc/dnscrypt-proxy.toml'
sed -i "s/\(^cache_min_ttl.=.\).*$/\115/g" '/opt/etc/dnscrypt-proxy.toml'
sed -i "s/\(^cache_max_ttl.=.\).*$/\1129600/g" '/opt/etc/dnscrypt-proxy.toml'
# требование безопасности к серверам
sed -i "s/\(^require_dnssec.=.\).*$/\1true/g" '/opt/etc/dnscrypt-proxy.toml'
# пока нет поддержки IPv6
sed -i "s/\(^block_ipv6.=.\).*$/\1true/g" '/opt/etc/dnscrypt-proxy.toml'
sed -i "s/\(^block_ipv6.=.\).*$/\1true/g" '/opt/etc/dnscrypt-proxy.toml'
sed -i "s/\(^ipv6_servers.=.\).*$/\1false/g" '/opt/etc/dnscrypt-proxy.toml'
# более тяжёлые для роутера
sed -i "s/^[# ]\{0,1\}[ ]\{0,1\}\(doh_servers.=.\).*$/\1false/g" '/opt/etc/dnscrypt-proxy.toml'
Expand Down

0 comments on commit bcec1c4

Please sign in to comment.