Reordered IP address section.
Always display IP being used whether provided or detected.
This commit is contained in:
parent
d9804ee8ec
commit
4d28f068f0
@ -192,12 +192,13 @@ if [ -z "$ipAddress" ]; then
|
|||||||
echo -e "\e[1;36m(set to IP6 mode)\e[0m"
|
echo -e "\e[1;36m(set to IP6 mode)\e[0m"
|
||||||
ipAddress=$(curl -s http://ipv6.icanhazip.com)
|
ipAddress=$(curl -s http://ipv6.icanhazip.com)
|
||||||
fi
|
fi
|
||||||
|
# check if curl reported any errors
|
||||||
ipLookupResult=$(echo "$?")
|
ipLookupResult=$(echo "$?")
|
||||||
if [ "$ipLookupResult" -ne 0 ]; then
|
if [ "$ipLookupResult" -ne 0 ]; then
|
||||||
quit 201
|
quit 201
|
||||||
else
|
|
||||||
echo -e "\e[0;36mUsing IP address: $ipAddress"
|
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
echo -e "\e[0;36mUsing IP address: $ipAddress"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user