You've already forked fm-dx-webserver
mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-02-26 22:13:53 +01:00
hotfix for chat
This commit is contained in:
2
index.js
2
index.js
@@ -595,7 +595,7 @@ chatWss.on('connection', (ws, request) => {
|
||||
const minutes = String(currentTime.getMinutes()).padStart(2, '0');
|
||||
messageData.time = `${hours}:${minutes}`; // Adding current time to the message object in hours:minutes format
|
||||
|
||||
if (serverConfig.webserver.banlist.includes(clientIp)) {
|
||||
if (serverConfig.webserver.banlist?.includes(clientIp)) {
|
||||
return; // Do not proceed further if banned
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user