[update] IP 获取添加超时时长
This commit is contained in:
wulabing 2023-03-29 17:23:04 +08:00
parent 0b92a301ec
commit 99a4b737d0
No known key found for this signature in database
GPG Key ID: 213391AFDF73AE00

View File

@ -2,8 +2,8 @@
if [ -f /config_info.txt ]; then
echo "config.json exist"
else
IPV6=$(curl -6 ip.sb || echo "null")
IPV4=$(curl -4 ip.sb || echo "null")
IPV6=$(curl -6 -sSL --connect-timeout 3 --retry 2 ip.sb || echo "null")
IPV4=$(curl -4 -sSL --connect-timeout 3 --retry 2 ip.sb || echo "null")
if [ -z "$UUID" ]; then
echo "UUID is not set, generate random UUID "
UUID="$(/xray uuid)"