This commit is contained in:
Olia Lisa 2025-12-29 20:34:12 +08:00
parent 1c44ffdb1b
commit c27d29feee

View File

@ -17,7 +17,7 @@ run() {
if [ ! -e "$config_dir/config.json" ]; then
touch "$config_dir/config.json"
fi
local password=$(jq -r '.inbounds[0].users[0].password' "$config_file")
local password=$(jq -r '.inbounds[0].users[0].password' "$config_dir/config.json")
if [ ! -s "$config_dir/config.json" ] || [ "$password" = "你的密码" ]; then
bash "$script_dir/create_config.sh" # 创建配置
fi