mirror of
https://github.com/Shik3i/KoalaSync.git
synced 2026-08-18 15:23:13 +00:00
Refactor: Comprehensive Security and Architecture Audit
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user