Skip to content
This repository was archived by the owner on Feb 24, 2021. It is now read-only.

Commit e205ca4

Browse files
pgtedaviddias
authored andcommitted
fix: cascading connection from encrypted connection to parent connection
1 parent 7c2b7a9 commit e205ca4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ module.exports = {
3535
if (err) { return callback(err) }
3636

3737
conn.getPeerInfo((err, peerInfo) => {
38-
encryptedConnection.setInnerConn(state.secure)
38+
encryptedConnection.setInnerConn(new Connection(state.secure, conn))
3939

4040
if (err) { // no peerInfo yet, means I'm the receiver
4141
encryptedConnection.setPeerInfo(new PeerInfo(state.id.remote))

0 commit comments

Comments
 (0)