mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-15 15:53:51 +01:00
Raise ConfigError instead
This commit is contained in:
parent
e6a7a15f93
commit
e87d7a4b0f
1 changed files with 3 additions and 1 deletions
|
@ -95,7 +95,9 @@ class SynapseHomeServer(HomeServer):
|
||||||
site_tag = listener_config.get("tag", port)
|
site_tag = listener_config.get("tag", port)
|
||||||
|
|
||||||
if tls and config.no_tls:
|
if tls and config.no_tls:
|
||||||
return []
|
raise ConfigError(
|
||||||
|
"Listener on port %i has TLS enabled, but no_tls is set" % (port,),
|
||||||
|
)
|
||||||
|
|
||||||
resources = {}
|
resources = {}
|
||||||
for res in listener_config["resources"]:
|
for res in listener_config["resources"]:
|
||||||
|
|
Loading…
Reference in a new issue