Comparing version 1.1.7 to 1.1.8
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29859
424