apify / proxy-chain

Node.js implementation of a proxy server (think Squid) with support for SSL, authentication and upstream proxy chaining.
https://www.npmjs.com/package/proxy-chain
Apache License 2.0
851 stars 145 forks source link

feat: Add option to specify server's `host` #526

Closed jirimoravcik closed 1 year ago

jirimoravcik commented 1 year ago

I've added support for specifying host used for the listen call. This will enable users to e.g. listen on localhost, which can be more secure than the default unspecified IP address (0.0.0.0).

jancurn commented 1 year ago

Plus, can we please update the anonymizeProxy() function to set localhost? That will increase security by default, plus test the new option