We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1206f8d commit e02c0ddCopy full SHA for e02c0dd
rootfs/etc/cont-init.d/nginx-proxy-manager.sh
@@ -144,7 +144,7 @@ then
144
fi
145
146
# Generate the resolvers configuration file.
147
-echo resolver $(awk 'BEGIN{ORS=" "} $1=="nameserver" {print $2}' /etc/resolv.conf) ";" > /config/nginx/resolvers.conf
+echo resolver "$(awk 'BEGIN{ORS=" "} $1=="nameserver" {print ($2 ~ ":")? "["$2"]": $2}' /etc/resolv.conf);" > /config/nginx/resolvers.conf
148
149
# Take ownership of the config directory content.
150
find /config -mindepth 1 -exec chown $USER_ID:$GROUP_ID {} \;
0 commit comments