mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-22 04:34:28 +03:00
Give MFA config access
This commit is contained in:
parent
40702b638e
commit
cc149b11ea
2 changed files with 4 additions and 2 deletions
|
@ -79,10 +79,11 @@ class MatrixFederationAgent(object):
|
|||
|
||||
def __init__(
|
||||
self, reactor, tls_client_options_factory,
|
||||
_well_known_tls_policy=None,
|
||||
config, _well_known_tls_policy=None,
|
||||
_srv_resolver=None,
|
||||
_well_known_cache=well_known_cache,
|
||||
):
|
||||
self.config = config
|
||||
self._reactor = reactor
|
||||
self._clock = Clock(reactor)
|
||||
|
||||
|
@ -149,7 +150,7 @@ class MatrixFederationAgent(object):
|
|||
tls_options = None
|
||||
else:
|
||||
tls_options = self._tls_client_options_factory.get_options(
|
||||
res.tls_server_name.decode("ascii"), self.hs.config,
|
||||
res.tls_server_name.decode("ascii"), self.config,
|
||||
)
|
||||
|
||||
# make sure that the Host header is set correctly
|
||||
|
|
|
@ -177,6 +177,7 @@ class MatrixFederationHttpClient(object):
|
|||
self.agent = MatrixFederationAgent(
|
||||
hs.get_reactor(),
|
||||
tls_client_options_factory,
|
||||
hs.config,
|
||||
)
|
||||
self.clock = hs.get_clock()
|
||||
self._store = hs.get_datastore()
|
||||
|
|
Loading…
Reference in a new issue