From 1578cf8c5872dabf80db92c41456b8552c4da6b7 Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Fri, 6 Nov 2020 10:22:27 -0400 Subject: [PATCH] do not allow just any socket to connect --- src/sockets.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/sockets.js b/src/sockets.js index 8434b58c..c10e3454 100644 --- a/src/sockets.js +++ b/src/sockets.js @@ -265,9 +265,11 @@ module.exports = ( const isNotificationsSocket = !!socket.handshake.query .IS_NOTIFICATIONS_SOCKET + logger.info('New socket client connected (id=' + socket.id + ').') + if (!isLNDSocket) { - /** printing out the client who joined */ - logger.info('New socket client connected (id=' + socket.id + ').') + // let's not allow this + return } if (isLNDSocket) {