Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Support for routing outbound HTTP requests via a proxy (#6239)
Browse files Browse the repository at this point in the history
* commit '1cb84c648':
  Support for routing outbound HTTP requests via a proxy (#6239)
  • Loading branch information
anoadragon453 committed Mar 16, 2020
2 parents e163ffd + 1cb84c6 commit 211a149
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/handlers/ui_auth/checkers.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class RecaptchaAuthChecker(UserInteractiveAuthChecker):
def __init__(self, hs):
super().__init__(hs)
self._enabled = bool(hs.config.recaptcha_private_key)
self._http_client = hs.get_simple_http_client()
self._http_client = hs.get_proxied_http_client()
self._url = hs.config.recaptcha_siteverify_api
self._secret = hs.config.recaptcha_private_key

Expand Down
1 change: 1 addition & 0 deletions synapse/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ def build_DEPENDENCY(self)
"http_client_context_factory",
"proxied_http_client",
"simple_http_client",
"proxied_http_client",
"media_repository",
"media_repository_resource",
"federation_transport_client",
Expand Down

0 comments on commit 211a149

Please sign in to comment.