From 99a4b737d03f848c6199332ab2e16c6f4a1aed02 Mon Sep 17 00:00:00 2001 From: wulabing Date: Wed, 29 Mar 2023 17:23:04 +0800 Subject: [PATCH] 0.0.11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [update] IP 获取添加超时时长 --- reality/entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reality/entrypoint.sh b/reality/entrypoint.sh index b10b72f..88cccc8 100644 --- a/reality/entrypoint.sh +++ b/reality/entrypoint.sh @@ -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)"