cleartext.socket always exists

This commit is contained in:
Ryan Dahl
2010-12-18 16:38:32 -08:00
parent bb27885251
commit 41d73e02a2

View File

@@ -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) {