From 6e93633584df88f29c037f77dbd0335eb21eca3e Mon Sep 17 00:00:00 2001 From: Joseph Nuthalapati Date: Fri, 26 Feb 2021 11:17:39 -0800 Subject: [PATCH] coturn: Minor refactor view to use utility to generate URIs Sunil: - Join the string in the template instead of the view. Signed-off-by: Joseph Nuthalapati Signed-off-by: Sunil Mohan Adapa Reviewed-by: Sunil Mohan Adapa --- plinth/modules/coturn/templates/coturn.html | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/plinth/modules/coturn/templates/coturn.html b/plinth/modules/coturn/templates/coturn.html index f90905bd8..d5dae8706 100644 --- a/plinth/modules/coturn/templates/coturn.html +++ b/plinth/modules/coturn/templates/coturn.html @@ -16,10 +16,8 @@ Use the following URLs to configure your communication server: {% endblocktrans %} -
stun:{{ config.realm }}:3478?transport=udp
-stun:{{ config.realm }}:3478?transport=tcp
-turn:{{ config.realm }}:3478?transport=udp
-turn:{{ config.realm }}:3478?transport=tcp
+
{% for uri in config.uris %}{{ uri }}
+{% endfor %}

@@ -27,6 +25,6 @@ turn:{{ config.realm }}:3478?transport=tcp Use the following shared authentication secret: {% endblocktrans %} -

{{ config.static_auth_secret }}
+
{{ config.shared_secret }}

{% endblock %}