public-transport / hafas-client

JavaScript client for HAFAS public transport APIs.
ISC License
278 stars 54 forks source link

request.js: Use correct HttpsAgent option for localAddress #249

Closed MTRNord closed 3 years ago

MTRNord commented 3 years ago

This most likely has been a typo when it was added but according to the node docs this field is actually called localAddress.

This change also made this locally work again after one of my IPs got blocked by a hafas endpoint.

derhuerst commented 3 years ago

Thanks for pointing this out! Huh, I'm pretty sure that I validated this code against a server while ago. 🤔

derhuerst commented 3 years ago

Published as hafas-client@5.21.0. 🎉