matrix-synapse: Fix startup error caused by bind_address setting

- Drop the `bind_address` key during upgrade
- Use the new `bind_addresses` key instead

Fixes #1420

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 14:44:08 +05:30 committed by Sunil Mohan Adapa
parent 80b4b654de
commit b2c6112990
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2
2 changed files with 3 additions and 2 deletions

View File

@ -56,7 +56,8 @@ def subcommand_post_install(_):
for listener in config['listeners']:
if listener['port'] == 8448:
listener['bind_address'] = '0.0.0.0'
listener['bind_addresses'] = ['::1', '0.0.0.0']
listener.pop('bind_address', None)
# Setup ldap parameters
config['password_providers'] = [{}]

View File

@ -31,7 +31,7 @@ from plinth.menu import main_menu
from .manifest import backup, clients
version = 2
version = 3
managed_services = ['matrix-synapse']