mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-04 17:24:10 -04:00
Don't load the generated config as the default.
It's too confusing.
This commit is contained in:
parent
7c2f8881a9
commit
16b52642e2
29 changed files with 60 additions and 94 deletions
|
@ -307,7 +307,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