From 9bf1193f42852e52d98b936086dcdf5936660904 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Wed, 25 Sep 2019 19:40:20 +0200 Subject: [PATCH] Ok, this is a little bit redundant :( --- entrypoint.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index 04447f1..c727137 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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 \