do not allow just any socket to connect

This commit is contained in:
Daniel Lugo 2020-11-06 10:22:27 -04:00
parent 877d319ff3
commit 1578cf8c58

View file

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