Skip to content

Commit b9e5c93

Browse files
authored
Add support for IPv6 (#76)
1 parent 5158567 commit b9e5c93

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -Eeuo pipefail
44
trap "echo TRAPed signal" HUP INT QUIT TERM
55

66
#configure nginx DNS settings to match host, why must we do that nginx?
7-
conf="resolver $(/usr/bin/awk 'BEGIN{ORS=" "} $1=="nameserver" {print $2}' /etc/resolv.conf) ipv6=off; # Avoid ipv6 addresses for now"
7+
conf="resolver $(/usr/bin/awk 'BEGIN{ORS=" "} $1=="nameserver" {print $2}' /etc/resolv.conf);"
88
[ "$conf" = "resolver ;" ] && echo "no nameservers found" && exit 0
99
confpath=/etc/nginx/resolvers.conf
1010
if [ ! -e $confpath ] || [ "$conf" != "$(cat $confpath)" ]

nginx.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ http {
1414
map_hash_bucket_size 128;
1515
include /etc/nginx/mime.types;
1616
default_type application/octet-stream;
17-
17+
1818
# Include nginx timeout configs
1919
include /etc/nginx/nginx.timeouts.config.conf;
2020

@@ -133,6 +133,7 @@ http {
133133
# The proxy director layer, listens on 3128
134134
server {
135135
listen 3128;
136+
listen [::]:3128;
136137
server_name proxy_director_;
137138

138139
# dont log the CONNECT proxy.

0 commit comments

Comments
 (0)