Skip to content

Commit de2ad9c

Browse files
authored
fix: unwrap connection for boxed stream (#3314)
If the remote sends more data than just the pnet handshake it can be missed by the onwards boxed stream so unwrap the byte stream which will push the extra bytes back onto the connection.
1 parent e626e2e commit de2ad9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/pnet/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ class PreSharedKeyConnectionProtector implements ConnectionProtector {
144144
localNonce,
145145
remoteNonce,
146146
psk: this.psk,
147-
maConn: connection,
147+
maConn: bytes.unwrap(),
148148
log
149149
})
150150
}

0 commit comments

Comments
 (0)