mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-23 01:55:53 +03:00
Various cosmetics to make TravisCI happy
This commit is contained in:
parent
af8a2f679b
commit
f86b695cbd
1 changed files with 5 additions and 2 deletions
|
@ -131,13 +131,16 @@ class AcmeHandler(object):
|
||||||
tls_client_options_factory=ClientTLSOptionsFactory(None),
|
tls_client_options_factory=ClientTLSOptionsFactory(None),
|
||||||
reactor=self.reactor,
|
reactor=self.reactor,
|
||||||
)
|
)
|
||||||
delegated = yield agent._get_well_known(bytes(self.hs.hostname,"ascii"))
|
delegated = yield agent._get_well_known(bytes(self.hs.hostname, "ascii"))
|
||||||
|
|
||||||
# If .well-known is in use, use the delegated hostname instead of the
|
# If .well-known is in use, use the delegated hostname instead of the
|
||||||
# homeserver's server_name.
|
# homeserver's server_name.
|
||||||
if delegated:
|
if delegated:
|
||||||
cert_name = delegated.decode("ascii")
|
cert_name = delegated.decode("ascii")
|
||||||
logger.info(".well-known is in use, provisionning %s instead of %s", cert_name, self.hs.hostname)
|
logger.info(
|
||||||
|
".well-known is in use, provisionning %s instead of %s",
|
||||||
|
cert_name, self.hs.hostname,
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
cert_name = self.hs.hostname
|
cert_name = self.hs.hostname
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue