|
@@ -18,8 +18,8 @@ fi
|
|
|
|
|
|
/app/generate-dhparam.sh $DHPARAM_BITS
|
|
|
|
|
|
-
|
|
|
-export RESOLVERS=$(awk '$1 == "nameserver" {print $2}' ORS=' ' /etc/resolv.conf | sed 's/ *$//g')
|
|
|
+
|
|
|
+export RESOLVERS=$(awk '$1 == "nameserver" {print ($2 ~ ":")? "["$2"]": $2}' ORS=' ' /etc/resolv.conf | sed 's/ *$//g')
|
|
|
if [ "x$RESOLVERS" = "x" ]; then
|
|
|
echo "Warning: unable to determine DNS resolvers for nginx" >&2
|
|
|
unset RESOLVERS
|