Refactor: Comprehensive Security and Architecture Audit

This commit is contained in:
Timo
2026-04-22 09:49:23 +02:00
parent ffbd80881a
commit 37ead94f76
4 changed files with 65 additions and 23 deletions
+1
View File
@@ -138,6 +138,7 @@ io.on('connection', (socket) => {
log('CONN', `New connection: ${socket.id} from ${clientIp}`);
socket.on(EVENTS.JOIN_ROOM, async ({ roomId, password, peerId, protocolVersion }) => {
if (typeof roomId !== 'string') return;
try {
// Protocol check
if (protocolVersion !== '1.0.0') {