From 4705d947daf9c411fddfea5b22cbbd1a1f1e84fe Mon Sep 17 00:00:00 2001 From: Zoey Date: Fri, 29 Sep 2023 17:08:41 +0200 Subject: [PATCH] apache ip binding - allow ipv6 Signed-off-by: Zoey --- Containers/mastercontainer/start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Containers/mastercontainer/start.sh b/Containers/mastercontainer/start.sh index 6193cedba56..15104d3328d 100644 --- a/Containers/mastercontainer/start.sh +++ b/Containers/mastercontainer/start.sh @@ -179,7 +179,7 @@ It is set to '$APACHE_PORT'." fi fi if [ -n "$APACHE_IP_BINDING" ]; then - if ! echo "$APACHE_IP_BINDING" | grep -q '^[0-9.]\+$'; then + if ! echo "$APACHE_IP_BINDING" | grep -q '^[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+$\|^[0-9a-f:]\+$'; then print_red "You provided an ip-address for the apache container's ip-binding but it was not a valid ip-address. It is set to '$APACHE_IP_BINDING'." exit 1