proxy-rotator-agent
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -28,4 +28,5 @@ 'use strict' | ||
// console.log(options) | ||
var uriProtocol = (options.protocol || options.uri?.protocol || options._defaultAgent?.protocol === 'https:' ? 'https' : 'http') | ||
var proxyProtocol = (proxyOptions.proxy.protocol === 'https:' ? 'Https' : 'Http') | ||
const reqProtocol = options.protocol || options.uri?.protocol || options._defaultAgent?.protocol; | ||
const uriProtocol = (reqProtocol === 'https:' ? 'https' : 'http') | ||
const proxyProtocol = (proxyOptions.proxy.protocol === 'https:' ? 'Https' : 'Http') | ||
const key = `${uriProtocol}Over${proxyProtocol}` | ||
@@ -46,2 +47,4 @@ // console.log(key, uriProtocol, proxyProtocol, proxyOptions) | ||
ProxyRotatorAgent.defaultPort = 443; | ||
module.exports = ProxyRotatorAgent; | ||
@@ -48,0 +51,0 @@ |
@@ -6,3 +6,3 @@ { | ||
"description": "HTTP proxy rotator tunneling agent", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"repository": { | ||
@@ -9,0 +9,0 @@ "url": "https://github.com/fabiel-leon/proxy-rotator-agent" |
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
13215
44
0