add check for IP address

This commit is contained in:
Steve Waterworth
2018-02-19 09:17:28 +00:00
parent bbcce7400e
commit 0a9b09358c

View File

@@ -6,7 +6,7 @@ then
exit 1
fi
TEST=$(echo "$HOST" | egrep '^http://[a-z]+')
TEST=$(echo "$HOST" | egrep '^http://[a-z0-9]+')
if [ -z "$TEST" ]
then
echo "Host must start with http://"