mirror of
https://github.com/Nyr/openvpn-install.git
synced 2025-04-05 05:33:30 +03:00
The WhatsMyIP service by Akamai has not worked in many months. Switched to a working service (icanhazip.com)
This commit is contained in:
parent
5229459f99
commit
f6b5cd74d4
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ else
|
|||
if echo "$ip" | grep -qE '^(10\.|172\.1[6789]\.|172\.2[0-9]\.|172\.3[01]\.|192\.168)'; then
|
||||
echo
|
||||
echo "This server is behind NAT. What is the public IPv4 address or hostname?"
|
||||
get_public_ip=$(wget -4qO- "http://whatismyip.akamai.com/" || curl -4Ls "http://whatismyip.akamai.com/")
|
||||
get_public_ip=$(wget -4qO- "https://icanhazip.com" || curl -4Ls "https://icanhazip.com")
|
||||
read -p "Public IPv4 address / hostname [$get_public_ip]: " public_ip
|
||||
[ -z "$public_ip" ] && public_ip="$get_public_ip"
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue