mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
coturn: Don't handle certificates if not installed
Tests: - Without these changes, with Coturn not-installed, change the domain name. Notice that certificate events for Coturn fails due to missing domain information. - With these changes, with Coturn not-installed, change the domain name. Notice that certificate events for Coturn don't result in any actions. - With these changes, with Coturn installed, change the domain name. Notice that certificate events for Coturn succeed. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
514a04d643
commit
53b6203473
@ -115,6 +115,10 @@ def get_domain():
|
||||
|
||||
def get_domains():
|
||||
"""Return a list with the configured domains."""
|
||||
setup_helper = globals()['setup_helper']
|
||||
if setup_helper.get_state() == 'needs-setup':
|
||||
return []
|
||||
|
||||
domain = get_domain()
|
||||
if domain:
|
||||
return [domain]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user