Selaa lähdekoodia

Update ipv4-ipv6.sh

molon 4 vuotta sitten
vanhempi
sitoutus
b94558c0d1
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      scripts/ipv4-ipv6.sh

+ 2 - 2
scripts/ipv4-ipv6.sh

@@ -30,10 +30,10 @@ while [ ! -n "$STATIC" ]; do
 done
 
 eecho "Getting IPv4 ..."
-IP4=$(curl -4 -s icanhazip.com)
+IP4=$(curl -4 -s icanhazip.com -m 10)
 
 eecho "Getting IPv6 ..."
-IP6=$(curl -6 -s icanhazip.com)
+IP6=$(curl -6 -s icanhazip.com -m 10)
 if [[ $IP6 != *:* ]]; then
   IP6=
 fi