Socket
Socket
Sign inDemoInstall

stunnel

Package Overview
Dependencies
20
Maintainers
7
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.10.0 to 0.10.1

2

package.json
{
"name": "stunnel",
"version": "0.10.0",
"version": "0.10.1",
"description": "A pure-JavaScript tunnel client for http and https similar to localtunnel.me, but uses TLS (SSL) with ServerName Indication (SNI) over https to work even in harsh network conditions such as in student dorms and behind HOAs, corporate firewalls, public libraries, airports, airplanes, etc. Can also tunnel tls and plain tcp.",

@@ -5,0 +5,0 @@ "main": "wsclient.js",

@@ -16,2 +16,3 @@ (function () {

function run(copts) {
// jshint latedef:false
var activityTimeout = copts.activityTimeout || 2*60*1000;

@@ -67,3 +68,3 @@ var pongTimeout = copts.pongTimeout || 10*1000;

.catch(function (err) {
console.error('[closeSingle] failed to close connection', cid, err);
console.error('[closeSingle] failed to close connection', cid, err.toString());
delete localclients[cid];

@@ -410,2 +411,3 @@ })

var connPromise;
return {

@@ -447,5 +449,6 @@ end: function() {

// the 'hello' and the 'un-associated' error commands to determine if the token is good.
prom = new PromiseA(function (resolve, reject) {
prom = connPromise = new PromiseA(function (resolve, reject) {
connCallback = function (err) {
connCallback = null;
connPromise = null;
if (err) {

@@ -460,2 +463,7 @@ reject(err);

}
else if (connPromise) {
prom = connPromise.then(function () {
return sendCommand('add_token', token);
});
}
else {

@@ -462,0 +470,0 @@ prom = sendCommand('add_token', token);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc