Skip to content

Commit 41d73e0

Browse files
committed
cleartext.socket always exists
1 parent bb27885 commit 41d73e0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/tls.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,8 @@ function Server(/* [options], listener */) {
508508
pair.encrypted.pipe(socket);
509509
socket.pipe(pair.encrypted);
510510

511+
pair.cleartext.socket = socket;
512+
511513
pair.on('secure', function() {
512514
pair.cleartext.authorized = false;
513515
if (!self.requestCert) {

0 commit comments

Comments
 (0)