diff options
author | Andrew Morgan <andrew@amorgan.xyz> | 2020-03-16 19:24:14 +0000 |
---|---|---|
committer | Andrew Morgan <andrew@amorgan.xyz> | 2020-03-16 19:24:14 +0000 |
commit | 211a14910611c8923ee62a9916113e8c395822f1 (patch) | |
tree | cb65ce418a34e0df8789c357bb97cbd79af2fb28 | |
parent | Remove last usages of deprecated logging.warn method (#6314) (diff) | |
parent | Support for routing outbound HTTP requests via a proxy (#6239) (diff) | |
download | synapse-211a14910611c8923ee62a9916113e8c395822f1.tar.xz |
Support for routing outbound HTTP requests via a proxy (#6239)
* commit '1cb84c648': Support for routing outbound HTTP requests via a proxy (#6239)
-rw-r--r-- | synapse/handlers/ui_auth/checkers.py | 2 | ||||
-rw-r--r-- | synapse/server.py | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/synapse/handlers/ui_auth/checkers.py b/synapse/handlers/ui_auth/checkers.py index 29aa1e5aaf..8363d887a9 100644 --- a/synapse/handlers/ui_auth/checkers.py +++ b/synapse/handlers/ui_auth/checkers.py @@ -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 diff --git a/synapse/server.py b/synapse/server.py index 72f11062b5..a31ae9de7a 100644 --- a/synapse/server.py +++ b/synapse/server.py @@ -171,6 +171,7 @@ class HomeServer(object): "http_client_context_factory", "proxied_http_client", "simple_http_client", + "proxied_http_client", "media_repository", "media_repository_resource", "federation_transport_client", |