bittorrent-tracker/lib/client
Alex ad64dc3a68
feat: add proxy support for tracker clients (#356)
* Add a httpAgent options to http and websocket client trackers.

* Add a socks proxy to udp client trackers.

* Update http agent mock to node 5+

* Bugfix in socks configuration

* Use new socket to connect to the proxy relay and slice the proxy header from the message

* Add documentation for proxy

* Provide http and https agents for proxy.
Change proxy options structure and auto populate socks HTTP agents.

* Update documentation

* Check socks version for UDP proxy

* Clone proxy settings to prevent Socks instances concurrency

* Generate socks http agents on the fly (reuse is not working)

* Use clone to deepcopy socks opts

* Dont create agent for now since we cannot reuse it between requests.

* Removed unused require

* Add .gitignore

* Fix merge conflict

* Fix URL toString

* Fix new Socket constructor

Co-authored-by: Yoann Ciabaud <yoann@sonora.io>
2021-08-20 16:08:36 -05:00
..
http-tracker.js feat: add proxy support for tracker clients (#356) 2021-08-20 16:08:36 -05:00
tracker.js replace self with this 2018-10-03 15:06:38 +02:00
udp-tracker.js feat: add proxy support for tracker clients (#356) 2021-08-20 16:08:36 -05:00
websocket-tracker.js feat: add proxy support for tracker clients (#356) 2021-08-20 16:08:36 -05:00