proxy-check
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -69,2 +69,3 @@ const http = require('http'); | ||
req.on('connect', res => { | ||
req.destroy(); | ||
if (res.statusCode === 200) { | ||
@@ -71,0 +72,0 @@ return resolve(true); |
{ | ||
"name": "proxy-check", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Check proxy for NodeJS", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,2 +0,2 @@ | ||
# Check proxy | ||
# Check proxy for NodeJS | ||
@@ -17,3 +17,3 @@ ```javascript | ||
}).catch(e => { | ||
console.error(e); // Proxy offline | ||
console.error(e); // ECONNRESET | ||
}); | ||
@@ -20,0 +20,0 @@ ``` |
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
3237
76