فهرست منبع

Update ipv4-ipv6.sh

molon 4 سال پیش
والد
کامیت
b94558c0d1
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      scripts/ipv4-ipv6.sh

+ 2 - 2
scripts/ipv4-ipv6.sh

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