Skip to content

Commit

Permalink
Fixed generation of resolvers.conf when IPv6 is involved.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlesage committed Apr 6, 2020
1 parent 1206f8d commit e02c0dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rootfs/etc/cont-init.d/nginx-proxy-manager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ then
fi

# Generate the resolvers configuration file.
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

# Take ownership of the config directory content.
find /config -mindepth 1 -exec chown $USER_ID:$GROUP_ID {} \;
Expand Down

0 comments on commit e02c0dd

Please sign in to comment.