From 227362f550779130b3e2746f5ac80174699865d9 Mon Sep 17 00:00:00 2001 From: eooce <142894633+eooce@users.noreply.github.com> Date: Tue, 27 Aug 2024 14:45:15 +0800 Subject: [PATCH] Update sing-box.sh --- sing-box.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sing-box.sh b/sing-box.sh index 310526f..a092572 100644 --- a/sing-box.sh +++ b/sing-box.sh @@ -534,8 +534,8 @@ get_info() { isp=$(curl -s https://speed.cloudflare.com/meta | awk -F\" '{print $26"-"$18}' | sed -e 's/ /_/g') - argodomain=$(grep -oE 'https://[[:alnum:]+\.-]+\.trycloudflare\.com' "${work_dir}/argo.log" | sed 's@https://@@') - + argodomain=$(sed -n 's|.*https://\([^/]*trycloudflare\.com\).*|\1|p' "${work_dir}/argo.log") || true + [ -z "$argodomain" ] && argodomain=$(grep -oP '(?<=https://)[^\s]+trycloudflare\.com' "${work_dir}/argo.log") echo -e "${green}\nArgoDomain:${re}${purple}$argodomain${re}" yellow "\n温馨提醒:如节点不通,请打开V2rayN里的 “跳过证书验证”,或将节点的跳过证书验证设置为“true”\n"