Comparing version 0.0.9 to 0.1.0
@@ -48,2 +48,5 @@ var tls = require('tls'); | ||
requestCert: true, | ||
// reject unauthorized requests | ||
rejectUnauthorized: true, | ||
@@ -99,2 +102,10 @@ // validate the CA of the client certificate | ||
// check that we got no errors | ||
serviceSocket.on("error", function (exception) { | ||
console.log('Can\'t open socket to the server. Error: ' + JSON.stringify(exception)); | ||
proxySocket.end(); | ||
}); | ||
// on connect (for ssltunnel server) | ||
@@ -131,3 +142,3 @@ serviceSocket.on("connect", function () { | ||
console.log('Running \'server\' role. Listening on ' + options.server_port + | ||
', decrypting and forwarding to real server machine on ' + + options.client_host + ':' + options.client_port); | ||
', decrypting and forwarding to real server machine on ' + options.client_host + ':' + options.client_port); | ||
} | ||
@@ -134,0 +145,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"description": "TCP over SSL / TLS tunnel", | ||
"version": "0.0.9", | ||
"version": "0.1.0", | ||
"homepage": "https://github.com/anodejs/node-ssltunnel", | ||
@@ -8,0 +8,0 @@ "repository": { |
18961
168