mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-08 20:35:00 -04:00
Merge pull request #5523 from matrix-org/rav/arg_defaults
Stop conflating generated config and default config
This commit is contained in:
commit
af8a962905
30 changed files with 88 additions and 107 deletions
|
@ -327,7 +327,7 @@ class ServerConfig(Config):
|
|||
def has_tls_listener(self):
|
||||
return any(l["tls"] for l in self.listeners)
|
||||
|
||||
def default_config(self, server_name, data_dir_path, **kwargs):
|
||||
def generate_config_section(self, server_name, data_dir_path, **kwargs):
|
||||
_, bind_port = parse_and_validate_server_name(server_name)
|
||||
if bind_port is not None:
|
||||
unsecure_port = bind_port - 400
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue