From 41d73e02a22722e9ebdfd6af47dc5ac34099055e Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sat, 18 Dec 2010 16:38:32 -0800 Subject: [PATCH] cleartext.socket always exists --- lib/tls.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/tls.js b/lib/tls.js index 18d2f41581..eddd438d0c 100644 --- a/lib/tls.js +++ b/lib/tls.js @@ -508,6 +508,8 @@ function Server(/* [options], listener */) { pair.encrypted.pipe(socket); socket.pipe(pair.encrypted); + pair.cleartext.socket = socket; + pair.on('secure', function() { pair.cleartext.authorized = false; if (!self.requestCert) {