From b2c6112990bed1b41a488c3e4c2af0565ddb18b0 Mon Sep 17 00:00:00 2001 From: Joseph Nuthalapati Date: Tue, 22 Jan 2019 14:44:08 +0530 Subject: [PATCH] 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 Reviewed-by: Sunil Mohan Adapa --- actions/matrixsynapse | 3 ++- plinth/modules/matrixsynapse/__init__.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/actions/matrixsynapse b/actions/matrixsynapse index 5d578498a..dac7ba6fb 100755 --- a/actions/matrixsynapse +++ b/actions/matrixsynapse @@ -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'] = [{}] diff --git a/plinth/modules/matrixsynapse/__init__.py b/plinth/modules/matrixsynapse/__init__.py index 8ce2c3dfe..f008252d8 100644 --- a/plinth/modules/matrixsynapse/__init__.py +++ b/plinth/modules/matrixsynapse/__init__.py @@ -31,7 +31,7 @@ from plinth.menu import main_menu from .manifest import backup, clients -version = 2 +version = 3 managed_services = ['matrix-synapse']