fix: use different method to get ip

Signed-off-by: veryCrunchy <me@verycrunchy.dev>
This commit is contained in:
veryCrunchy
2024-09-26 06:03:22 +02:00
parent 47f585157c
commit 2f51a3c1b2
+1 -1
View File
@@ -17,7 +17,7 @@ while true; do
prompt_value="<IP>"
fi
read -p "Enter the host address (domain name or IP) [${prompt_type}: ${prompt_value}]: " input
_HOST_ADDRESS="${input:-${HOST_ADDRESS:-$(hostname -i)}}"
_HOST_ADDRESS="${input:-${HOST_ADDRESS:-$(curl -s https://checkip.amazonaws.com)}}"
break
done