--- lbbs/src/init.c 2025/05/13 11:32:01 1.20 +++ lbbs/src/init.c 2025/06/01 03:07:42 1.21 @@ -108,6 +108,15 @@ int load_conf(const char *conf_file) if (strcmp(c_name, "bbs_max_client") == 0) { fscanf(fin, "%d", &BBS_max_client); + if (BBS_max_client > MAX_CLIENTS_LIMIT) + { + log_error("Config BBS_max_client > limit (%d), reset it to limit\n", BBS_max_client); + BBS_max_client = MAX_CLIENTS_LIMIT; + } + } + if (strcmp(c_name, "bbs_max_client_per_ip") == 0) + { + fscanf(fin, "%d", &BBS_max_client_per_ip); } if (strcmp(c_name, "bbs_max_user") == 0) {