1
1
mirror of https://github.com/dnscrypt/dnscrypt-server-docker synced 2024-11-22 19:42:03 +01:00
This commit is contained in:
Frank Denis 2019-11-05 15:56:21 +01:00
parent 04dfc3e62b
commit 89f2fd6b71

@ -51,6 +51,7 @@ init() {
;; ;;
esac esac
listen_addresses=$(get_listen_addresses "$ext_addresses") listen_addresses=$(get_listen_addresses "$ext_addresses")
echo "$listen_addresses"
tls_proxy_configuration="" tls_proxy_configuration=""
if [ -n "$tls_proxy_upstream_address" ]; then if [ -n "$tls_proxy_upstream_address" ]; then
@ -198,7 +199,7 @@ get_listen_addresses() {
OIFS="$IFS" OIFS="$IFS"
IFS="," IFS=","
for ext_address in $ext_addresses; do for ext_address in $ext_addresses; do
localport=$(echo "ext_address" | sed -E 's/.*:([0-9]*)$/\1/') localport=$(echo "$ext_address" | sed -E 's/.*:([0-9]*)$/\1/')
if [ -z "$localport" ]; then if [ -z "$localport" ]; then
localport="443" localport="443"
fi fi