0.0.11
[update] IP 获取添加超时时长
This commit is contained in:
parent
0b92a301ec
commit
99a4b737d0
@ -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)"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user