socks5-https-client
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -27,2 +27,6 @@ /** | ||
// Node v0.12.0 requires the port to be specified. | ||
if (!options.port && options.host) { | ||
options.port = options.host.split(':')[1]; | ||
} | ||
if (!options.port) { | ||
@@ -29,0 +33,0 @@ options.port = 443; |
@@ -26,4 +26,9 @@ /** | ||
options.socket = socksSocket.socket; | ||
options.servername = options.hostname || options.host; | ||
if (options.hostname) { | ||
options.servername = options.hostname; | ||
} else if (options.host) { | ||
options.servername = options.host.split(':')[0]; | ||
} | ||
socksSocket.socket = tls.connect(options, function() { | ||
@@ -30,0 +35,0 @@ |
{ | ||
"name": "socks5-https-client", | ||
"description": "SOCKS v5 HTTPS client.", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/mattcg/socks5-https-client", |
8122
192