Skip to content

Commit 0d43708

Browse files
committed
Change IPv6 detection
1 parent 320fb3b commit 0d43708

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ for file in /etc/nginx/sites-available/*; do
222222
# TODO: Bind to IPv4 interface if it's available
223223

224224
# Bind to IPv6 interface if it's available
225-
if [ -f "/proc/net/if_inet6" ]; then
225+
if [ "$(ip -6 addr)" != "" ]; then
226226
sed -i "s/#{{IPV6}} //g" "$file"
227227
fi
228228

healthcheck.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,4 @@
3131

3232
# Check Blocked Pages
3333

34-
35-
34+
exit 0

0 commit comments

Comments
 (0)