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) {