From 47f66bee9bd1cebbe3d87825435f79fe8d30da0f Mon Sep 17 00:00:00 2001 From: Olia Lisa Date: Mon, 29 Dec 2025 17:18:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=85=8D=E7=BD=AE=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF,=E6=9B=B4=E6=96=B0=E7=94=9F=E6=88=90uuid=E6=96=B9?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/update_uuid.sh | 4 +--- config.json | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/bin/update_uuid.sh b/bin/update_uuid.sh index 0695371..e870bb7 100644 --- a/bin/update_uuid.sh +++ b/bin/update_uuid.sh @@ -5,13 +5,11 @@ update_uuid(){ script_dir=$(cd "$(dirname "$0")"; pwd) # 脚本文件绝对路径 config_dir="$script_dir/../" - source $script_dir/utils/jq_util.sh - # 生成 UUID uuid=$(docker run --rm teddysun/xray:latest xray uuid) #修改 UUID - modify_json_file "$config_dir/config.json" ".inbounds[0].settings.clients[0].id" "$uuid" + sed -i 's/你的UUID/'"$uuid"'/g' "$config_dir/config.json" echo "设置UUID成功." } diff --git a/config.json b/config.json index be04476..989d85e 100644 --- a/config.json +++ b/config.json @@ -12,8 +12,8 @@ "users": [ { "name": "user1", - "uuid": "5baf12ee-6922-4249-8ff8-7c7e26127e0d", - "password": "9tK!69jP7BpB" + "uuid": "你的UUID", + "password": "你的密码" } ], "congestion_control": "bbr",