]> cat aescling's git repositories - mastodon.git/commit
Fix support for HTTP proxies (#11245)
authorThibG <thib@sitedethib.com>
Sun, 7 Jul 2019 00:05:38 +0000 (02:05 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 7 Jul 2019 00:05:38 +0000 (02:05 +0200)
commit58276715be8a7e6b518ebd33cd2d4fd82ae81b2c
treea77fbe1947cd3a430449fb6b6bd7f8cbc0220113
parent23aeef52cc4540b4514e9f3b935b21f0530a3746
Fix support for HTTP proxies (#11245)

* Disable incorrect check for hidden services in Socket

Hidden services can only be accessed with an HTTP proxy, in which
case the host seen by the Socket class will be the proxy, not the
target host.

Hidden services are already filtered in `Request#initialize`.

* Use our Socket class to connect to HTTP proxies

Avoid the timeout logic being bypassed

* Add support for IP addresses in Request::Socket

* Refactor a bit, no need to keep the DNS resolver around
app/lib/request.rb