Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

socks

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

socks - npm Package Compare versions

Comparing version 1.1.7 to 1.1.8

8

lib/socks-agent.js

@@ -51,3 +51,3 @@ var tls = require('tls');

cleartext = tls.connect(options, function (err) {
return fn(err, this)
return fn(err, this);
});

@@ -68,3 +68,3 @@ cleartext.on('error', fn);

var opts;
if ('object' == typeof host) {
if ('object' === typeof host) {
// >= v0.11.x API

@@ -81,3 +81,3 @@ opts = host;

opts = { host: host, port: port };
if (null != localAddress) {
if (null !== localAddress) {
opts.localAddress = localAddress;

@@ -103,2 +103,4 @@ }

req.onSocket(socket);
//have to resume this socket when node 12
socket.resume();
}

@@ -105,0 +107,0 @@ });

@@ -7,3 +7,3 @@ var net = require('net');

const COMMAND = {
var COMMAND = {
Connect: 0x01,

@@ -14,3 +14,3 @@ Bind: 0x02,

const SOCKS4_RESPONSE = {
var SOCKS4_RESPONSE = {
Granted: 0x5A,

@@ -22,3 +22,3 @@ Failed: 0x5B,

const SOCKS5_AUTH = {
var SOCKS5_AUTH = {
NoAuth: 0x00,

@@ -29,3 +29,3 @@ GSSApi: 0x01,

const SOCKS5_RESPONSE = {
var SOCKS5_RESPONSE = {
Granted: 0x00,

@@ -32,0 +32,0 @@ Failure: 0x01,

{
"name": "socks",
"version": "1.1.7",
"version": "1.1.8",
"description": "A SOCKS proxy client supporting SOCKS 4, 4a, and 5. (also supports BIND/Associate)",

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc