From e205ca40f1476f8dce943693b85b4cce979fd78e Mon Sep 17 00:00:00 2001 From: Pedro Teixeira Date: Thu, 22 Feb 2018 15:46:34 +0000 Subject: [PATCH] fix: cascading connection from encrypted connection to parent connection --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index a7e480f..bd78e0a 100644 --- a/src/index.js +++ b/src/index.js @@ -35,7 +35,7 @@ module.exports = { if (err) { return callback(err) } conn.getPeerInfo((err, peerInfo) => { - encryptedConnection.setInnerConn(state.secure) + encryptedConnection.setInnerConn(new Connection(state.secure, conn)) if (err) { // no peerInfo yet, means I'm the receiver encryptedConnection.setPeerInfo(new PeerInfo(state.id.remote))