fixed processing first message

This commit is contained in:
antelle 2021-04-24 23:47:35 +02:00
parent 3722477eea
commit ac6e5a3ae8
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
1 changed files with 2 additions and 0 deletions

View File

@ -261,6 +261,8 @@ async function processFirstMessageFromSocket(socket, message) {
logger.debug(`Init connection ${state.socketId}`, message);
state.processingData = true;
if (!message.origin) {
logger.error('Empty origin');
socket.destroy();