proxy-chain
Advanced tools
Comparing version 2.0.4 to 2.0.5-beta.0
@@ -262,3 +262,8 @@ "use strict"; | ||
// CONNECT server.example.com:80 HTTP/1.1 | ||
handlerOpts.trgParsed = new url_1.URL(`connect://${request.url}`); | ||
try { | ||
handlerOpts.trgParsed = new url_1.URL(`connect://${request.url}`); | ||
} | ||
catch { | ||
throw new request_error_1.RequestError(`Target "${request.url}" could not be parsed`, 400); | ||
} | ||
if (!handlerOpts.trgParsed.hostname || !handlerOpts.trgParsed.port) { | ||
@@ -265,0 +270,0 @@ throw new request_error_1.RequestError(`Target "${request.url}" could not be parsed`, 400); |
{ | ||
"name": "proxy-chain", | ||
"version": "2.0.4", | ||
"version": "2.0.5-beta.0", | ||
"description": "Node.js implementation of a proxy server (think Squid) with support for SSL, authentication, upstream proxy chaining, and protocol tunneling.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
164849
1685
1