This commit is contained in:
Olia Lisa 2025-11-22 17:10:56 +08:00
parent 0e9714c3f0
commit 5ed3434bf3

View File

@ -9,11 +9,10 @@ update_xhttp_path(){
path_length="$(( RANDOM % 4 + 8 ))"
xhttp_path="/"$(docker run --rm teddysun/xray:latest xray uuid | tr -d '-' | cut -c 1-$path_length)
echo "设置xhttp_path成功"
# 修改config.json的xhttp_path
modify_json_file "$config_dir/config.json" ".inbounds[0].streamSettings.xhttpSettings.path" "$xhttp_path"
echo "设置xhttp_path成功"
}
update_xhttp_path