discover_my_public_ip.sh updated with new URLs

pull/447/head
pabloFuente 2020-04-21 13:37:36 +02:00
parent cc5b6f2892
commit f2f12ac0d1
3 changed files with 9 additions and 6 deletions

View File

@ -20,12 +20,13 @@ function valid_ip()
# Services to get public ip # Services to get public ip
SERVICES=( SERVICES=(
"curl --silent -sw :%{http_code} ipv4.icanhazip.com"
"curl --silent -sw :%{http_code} ifconfig.me" "curl --silent -sw :%{http_code} ifconfig.me"
"curl --silent -sw :%{http_code} -4 ifconfig.co"
"curl --silent -sw :%{http_code} ipecho.net/plain" "curl --silent -sw :%{http_code} ipecho.net/plain"
"curl --silent -sw :%{http_code} ipinfo.io/ip" "curl --silent -sw :%{http_code} ipinfo.io/ip"
"curl --silent -sw :%{http_code} checkip.amazonaws.com" "curl --silent -sw :%{http_code} checkip.amazonaws.com"
"curl --silent -sw :%{http_code} ident.me" "curl --silent -sw :%{http_code} v4.ident.me"
"curl --silent -sw :%{http_code} icanhazip.com"
) )
# Get public ip # Get public ip

View File

@ -20,12 +20,13 @@ function valid_ip()
# Services to get public ip # Services to get public ip
SERVICES=( SERVICES=(
"curl --silent -sw :%{http_code} ipv4.icanhazip.com"
"curl --silent -sw :%{http_code} ifconfig.me" "curl --silent -sw :%{http_code} ifconfig.me"
"curl --silent -sw :%{http_code} -4 ifconfig.co"
"curl --silent -sw :%{http_code} ipecho.net/plain" "curl --silent -sw :%{http_code} ipecho.net/plain"
"curl --silent -sw :%{http_code} ipinfo.io/ip" "curl --silent -sw :%{http_code} ipinfo.io/ip"
"curl --silent -sw :%{http_code} checkip.amazonaws.com" "curl --silent -sw :%{http_code} checkip.amazonaws.com"
"curl --silent -sw :%{http_code} ident.me" "curl --silent -sw :%{http_code} v4.ident.me"
"curl --silent -sw :%{http_code} icanhazip.com"
) )
# Get public ip # Get public ip

View File

@ -20,12 +20,13 @@ function valid_ip()
# Services to get public ip # Services to get public ip
SERVICES=( SERVICES=(
"curl --silent -sw :%{http_code} ipv4.icanhazip.com"
"curl --silent -sw :%{http_code} ifconfig.me" "curl --silent -sw :%{http_code} ifconfig.me"
"curl --silent -sw :%{http_code} -4 ifconfig.co"
"curl --silent -sw :%{http_code} ipecho.net/plain" "curl --silent -sw :%{http_code} ipecho.net/plain"
"curl --silent -sw :%{http_code} ipinfo.io/ip" "curl --silent -sw :%{http_code} ipinfo.io/ip"
"curl --silent -sw :%{http_code} checkip.amazonaws.com" "curl --silent -sw :%{http_code} checkip.amazonaws.com"
"curl --silent -sw :%{http_code} ident.me" "curl --silent -sw :%{http_code} v4.ident.me"
"curl --silent -sw :%{http_code} icanhazip.com"
) )
# Get public ip # Get public ip