diff --git a/bin/run.sh b/bin/run.sh index 9af8d00..ca7f87f 100644 --- a/bin/run.sh +++ b/bin/run.sh @@ -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