防护:添加人数过多防护措施

This commit is contained in:
luying
2022-01-08 17:13:31 +08:00
parent f2c4be6443
commit 0f8a4a946e
18 changed files with 287 additions and 25 deletions

View File

@@ -0,0 +1,15 @@
{
"PROTECT_API_INTERVAL": 500,
"PROTECT_API": [
"chat.chatHandler.sendGroupMessage",
"chat.chatHandler.sendPrivateMessage",
"battle.barrageHandler.sendBarrage"
],
"API_IS_CLOSE": 1,
"CLOSE_APIS": [
"chat.chatHandler.sendGroupMessage"
],
"CLOSE_LOGIN": 0,
"CLOSE_LOGIN_WHEN_ONLINE_MAX": 1,
"MAX_ONLINE_USER_COUNT": 5000
}