do not allow just any socket to connect
This commit is contained in:
parent
877d319ff3
commit
1578cf8c58
1 changed files with 4 additions and 2 deletions
|
|
@ -265,9 +265,11 @@ module.exports = (
|
||||||
const isNotificationsSocket = !!socket.handshake.query
|
const isNotificationsSocket = !!socket.handshake.query
|
||||||
.IS_NOTIFICATIONS_SOCKET
|
.IS_NOTIFICATIONS_SOCKET
|
||||||
|
|
||||||
if (!isLNDSocket) {
|
|
||||||
/** printing out the client who joined */
|
|
||||||
logger.info('New socket client connected (id=' + socket.id + ').')
|
logger.info('New socket client connected (id=' + socket.id + ').')
|
||||||
|
|
||||||
|
if (!isLNDSocket) {
|
||||||
|
// let's not allow this
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isLNDSocket) {
|
if (isLNDSocket) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue