1
0
mirror of https://github.com/KubaPro010/fm-dx-webserver.git synced 2026-02-26 22:13:53 +01:00

config save update

This commit is contained in:
NoobishSVK
2024-11-03 22:01:44 +01:00
parent 84bbf692d3
commit 339b2b4258

View File

@@ -433,7 +433,7 @@ wss.on('connection', (ws, request) => {
serverConfig.webserver.banlist.push(clientIp);
logInfo(`User \x1b[90m${clientIp}\x1b[0m has been added to the banlist due to extreme spam.`);
console.log(serverConfig.webserver.banlist);
serverConfig.saveConfig();
serverConfig.configSave();
}
ws.close(1008, 'Bot-like behavior detected');