Do not display internal IP

This commit is contained in:
Kroese 2023-05-11 17:18:10 +02:00 committed by GitHub
parent d416357a6f
commit a71ff45bba

View File

@ -11,7 +11,6 @@ if [[ ! "${RESPONSE}" =~ "\"success\"" ]] ; then
fi fi
# Retrieve the HTTP port number # Retrieve the HTTP port number
if [[ ! "${RESPONSE}" =~ "\"http_port\"" ]] ; then if [[ ! "${RESPONSE}" =~ "\"http_port\"" ]] ; then
echo "Failed to parse response from guest: $RESPONSE" && exit 1 echo "Failed to parse response from guest: $RESPONSE" && exit 1
fi fi
@ -24,7 +23,6 @@ PORT=${rest%%\"*}
[ -z "${PORT}" ] && echo "Guest has not set a portnumber yet.." && exit 1 [ -z "${PORT}" ] && echo "Guest has not set a portnumber yet.." && exit 1
# Retrieve the IP address # Retrieve the IP address
if [[ ! "${RESPONSE}" =~ "eth0" ]] ; then if [[ ! "${RESPONSE}" =~ "eth0" ]] ; then
echo "Failed to parse response from guest: $RESPONSE" && exit 1 echo "Failed to parse response from guest: $RESPONSE" && exit 1
fi fi