mirror of
https://github.com/dnscrypt/dnscrypt-server-docker
synced 2024-11-22 19:42:03 +01:00
Ok, this is a little bit redundant :(
This commit is contained in:
parent
50873357d0
commit
9bf1193f42
@ -124,9 +124,18 @@ dnscrypt_wrapper_compat() {
|
||||
echo "(we were not able to find the previous external IP address, the printed stamp will be wrong, but the previous stamp will keep working)" >&2
|
||||
ext_address="0.0.0.0:443"
|
||||
fi
|
||||
|
||||
tls_proxy_configuration=""
|
||||
domain_blacklist_file="${LISTS_DIR}/blacklist.txt"
|
||||
domain_blacklist_configuration=""
|
||||
if [ -s "$domain_blacklist_file" ]; then
|
||||
domain_blacklist_configuration="domain_blacklist = \"${domain_blacklist_file}\""
|
||||
fi
|
||||
sed \
|
||||
-e "s#@PROVIDER_NAME@#${provider_name}#" \
|
||||
-e "s#@EXTERNAL_IPV4@#${ext_address}#" \
|
||||
-e "s#@TLS_PROXY_CONFIGURATION@#${tls_proxy_configuration}#" \
|
||||
-e "s#@DOMAIN_BLACKLIST_CONFIGURATION@#${domain_blacklist_configuration}#" \
|
||||
"$CONFIG_FILE_TEMPLATE" >"$CONFIG_FILE"
|
||||
echo "...and check that everything's fine..." >&2
|
||||
/opt/encrypted-dns/sbin/encrypted-dns \
|
||||
|
Loading…
Reference in New Issue
Block a user