From f80d148bbeead0634fa99ee25e2c3e73059ed655 Mon Sep 17 00:00:00 2001 From: eooce <142894633+eooce@users.noreply.github.com> Date: Mon, 26 Aug 2024 14:01:35 +0800 Subject: [PATCH] =?UTF-8?q?VPS=E4=B8=80=E9=94=AE=E5=9B=9B=E5=90=88?= =?UTF-8?q?=E4=B8=80=E8=84=9A=E6=9C=AC(reality+vmess-argo+hysteria2+tuic5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sing-box.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sing-box.sh b/sing-box.sh index 0c16230..b79d38d 100644 --- a/sing-box.sh +++ b/sing-box.sh @@ -1201,8 +1201,9 @@ fi get_quick_tunnel() { restart_argo yellow "获取临时argo域名中,请稍等...\n" -sleep 5 -get_argodomain=$(grep -oE 'https://[[:alnum:]+\.-]+\.trycloudflare\.com' "/etc/sing-box/argo.log" | sed 's@https://@@') +sleep 6 +get_argodomain=$(sed -n 's|.*https://\([^/]*trycloudflare\.com\).*|\1|p' /etc/sing-box/argo.log) || true +[ -z "$get_argodomain" ] && get_argodomain=$(grep -oP '(?<=https://)[^\s]+trycloudflare\.com' /etc/sing-box/argo.log) green "ArgoDomain:${purple}$get_argodomain${re}" ArgoDomain=$get_argodomain } @@ -1298,7 +1299,7 @@ while true; do exit 1 fi - sleep 4 + sleep 6 get_info add_nginx_conf create_shortcut