mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
https-proxy-agent@7
This commit is contained in:
parent
4cb7062302
commit
f9c24a4a84
2 changed files with 4 additions and 6 deletions
|
@ -24,11 +24,9 @@ const plainAgent = new HttpsAgent({
|
||||||
let getAgent = () => plainAgent
|
let getAgent = () => plainAgent
|
||||||
|
|
||||||
if (proxyAddress) {
|
if (proxyAddress) {
|
||||||
// todo: this doesn't honor `keepAlive: true`
|
const agent = new ProxyAgent(proxyAddress, {
|
||||||
// related:
|
keepAlive: true,
|
||||||
// - https://github.com/TooTallNate/node-https-proxy-agent/pull/112
|
})
|
||||||
// - https://github.com/TooTallNate/node-agent-base/issues/5
|
|
||||||
const agent = new ProxyAgent(proxyAddress)
|
|
||||||
getAgent = () => agent
|
getAgent = () => agent
|
||||||
} else if (localAddresses) {
|
} else if (localAddresses) {
|
||||||
const agents = process.env.LOCAL_ADDRESS.split(',')
|
const agents = process.env.LOCAL_ADDRESS.split(',')
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
"cross-fetch": "^3.1.5",
|
"cross-fetch": "^3.1.5",
|
||||||
"google-polyline": "^1.0.3",
|
"google-polyline": "^1.0.3",
|
||||||
"gps-distance": "0.0.4",
|
"gps-distance": "0.0.4",
|
||||||
"https-proxy-agent": "^5.0.0",
|
"https-proxy-agent": "^7.0.0",
|
||||||
"lodash": "^4.17.5",
|
"lodash": "^4.17.5",
|
||||||
"luxon": "^3.1.1",
|
"luxon": "^3.1.1",
|
||||||
"object-scan": "^13.0.0",
|
"object-scan": "^13.0.0",
|
||||||
|
|
Loading…
Add table
Reference in a new issue