cleartext.socket always exists

v0.7.4-release
Ryan Dahl 2010-12-18 16:38:32 -08:00
parent bb27885251
commit 41d73e02a2
1 changed files with 2 additions and 0 deletions

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