mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
request.js: Use correct HttpsAgent option for localAddress
This commit is contained in:
parent
c270eed998
commit
4492b3a376
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ if (proxyAddress) {
|
||||||
.map((addr) => {
|
.map((addr) => {
|
||||||
const family = isIP(addr)
|
const family = isIP(addr)
|
||||||
if (family === 0) throw new Error('invalid local address:' + addr)
|
if (family === 0) throw new Error('invalid local address:' + addr)
|
||||||
return new HttpsAgent({addr, family})
|
return new HttpsAgent({localAddress: addr, family})
|
||||||
})
|
})
|
||||||
const pool = roundRobin(agents)
|
const pool = roundRobin(agents)
|
||||||
getAgent = () => pool.get()
|
getAgent = () => pool.get()
|
||||||
|
|
Loading…
Add table
Reference in a new issue