From 60165d825259ee062caaf6d452be3e85219aefdf Mon Sep 17 00:00:00 2001 From: Olia Lisa Date: Sat, 10 Jan 2026 19:58:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E5=8F=98=E9=87=8F=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E5=B1=80=E9=83=A8=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/update_xhttp_path.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/update_xhttp_path.sh b/bin/update_xhttp_path.sh index 9a04cfa..c363186 100644 --- a/bin/update_xhttp_path.sh +++ b/bin/update_xhttp_path.sh @@ -6,8 +6,8 @@ update_xhttp_path(){ local config_dir="$script_dir/../conf" source $script_dir/utils/jq_util.sh - path_length="$(( RANDOM % 4 + 8 ))" - xhttp_path="/"$(docker run --rm teddysun/xray:latest xray uuid | tr -d '-' | cut -c 1-$path_length) + local path_length="$(( RANDOM % 4 + 8 ))" + local xhttp_path="/"$(docker run --rm teddysun/xray:latest xray uuid | tr -d '-' | cut -c 1-$path_length) # 修改config.json的xhttp_path modify_json_file "$config_dir/config.json" ".inbounds[0].streamSettings.xhttpSettings.path" "$xhttp_path"