mirror of
https://github.com/bigbluebutton/docker.git
synced 2024-11-22 08:03:19 +01:00
setup: working IPv6 regex and less strict IPv4 regex
This commit is contained in:
parent
56cbd6b4d3
commit
2b28bac2fe
@ -53,7 +53,7 @@ done
|
|||||||
if [ ! "$ip_correct" == "y" ]
|
if [ ! "$ip_correct" == "y" ]
|
||||||
then
|
then
|
||||||
EXTERNAL_IPv4=""
|
EXTERNAL_IPv4=""
|
||||||
while [[ ! $EXTERNAL_IPv4 =~ ^[1-9][0-9]{0,2}\.[1-9][0-9]{0,2}\.[1-9][0-9]{0,2}\.[1-9][0-9]{0,2}$ ]]; do
|
while [[ ! $EXTERNAL_IPv4 =~ ^[1-9][0-9]{0,2}\.[0-9]{0,3}\.[0-9]{0,3}\.[1-9][0-9]{0,2}$ ]]; do
|
||||||
read -p "Please enter correct IPv4 address: " EXTERNAL_IPv4
|
read -p "Please enter correct IPv4 address: " EXTERNAL_IPv4
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
@ -68,7 +68,7 @@ then
|
|||||||
if [ ! "$ip_correct" == "y" ]
|
if [ ! "$ip_correct" == "y" ]
|
||||||
then
|
then
|
||||||
EXTERNAL_IPv6=""
|
EXTERNAL_IPv6=""
|
||||||
while [[ ! $EXTERNAL_IPv6 =~ ^[1-9][0-9]{0,2}\.[1-9][0-9]{0,2}\.[1-9][0-9]{0,2}\.[1-9][0-9]{0,2}$ ]]; do
|
while [[ ! $EXTERNAL_IPv6 =~ ^[0-9a-z:]{3,39}$ ]]; do
|
||||||
read -p "Please enter correct IPv6 address: " EXTERNAL_IPv6
|
read -p "Please enter correct IPv6 address: " EXTERNAL_IPv6
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user