Fix missing "stun:" prefix for jitsi/web STUN server URLs

Hopefully fixes an error like this (which I haven't been able to
reproduce, but..):

> [modules/xmpp/strophe.util.js] <Object.i.Strophe.log>:  Strophe: Error: Failed to construct 'RTCPeerConnection': 'matrix.DOMAIN' is not one of the supported URL schemes 'stun', 'turn' or 'turns'.
This commit is contained in:
Slavi Pantaleev
2020-04-09 09:16:10 +03:00
parent 61fffa169c
commit 67a5ef97ba
2 changed files with 5 additions and 4 deletions

View File

@ -412,11 +412,11 @@ matrix_jitsi_jvb_auth_password: "{{ matrix_synapse_macaroon_secret_key | passwor
matrix_jitsi_web_stun_servers: |
{{
[
matrix_server_fqn_matrix + ':5349',
matrix_server_fqn_matrix + ':3478',
'stun:' + matrix_server_fqn_matrix + ':5349',
'stun:' + matrix_server_fqn_matrix + ':3478',
]
if matrix_coturn_enabled
else [ 'meet-jit-si-turnrelay.jitsi.net:443']
else [ 'stun:meet-jit-si-turnrelay.jitsi.net:443']
}}
######################################################################