matrix-synapse: Use '::' as the IPv6 bind address

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Joseph Nuthalapati 2019-01-22 15:35:04 +05:30 committed by Sunil Mohan Adapa
parent b2c6112990
commit bacc2bcb21
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -56,7 +56,7 @@ def subcommand_post_install(_):
for listener in config['listeners']:
if listener['port'] == 8448:
listener['bind_addresses'] = ['::1', '0.0.0.0']
listener['bind_addresses'] = ['::', '0.0.0.0']
listener.pop('bind_address', None)
# Setup ldap parameters
@ -86,9 +86,8 @@ def subcommand_post_install(_):
def subcommand_setup(arguments):
"""Configure the domain name for matrix-synapse package."""
domain_name = arguments.domain_name
action_utils.dpkg_reconfigure('matrix-synapse', {
'server-name': domain_name
})
action_utils.dpkg_reconfigure('matrix-synapse',
{'server-name': domain_name})
subcommand_enable(arguments)