Browse Source

cleartext.socket always exists

v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
41d73e02a2
  1. 2
      lib/tls.js

2
lib/tls.js

@ -508,6 +508,8 @@ function Server(/* [options], listener */) {
pair.encrypted.pipe(socket); pair.encrypted.pipe(socket);
socket.pipe(pair.encrypted); socket.pipe(pair.encrypted);
pair.cleartext.socket = socket;
pair.on('secure', function() { pair.on('secure', function() {
pair.cleartext.authorized = false; pair.cleartext.authorized = false;
if (!self.requestCert) { if (!self.requestCert) {

Loading…
Cancel
Save