summary refs log tree commit diff
path: root/synapse/config
diff options
context:
space:
mode:
authorDavid Baker <dbkr@matrix.org>2014-09-24 16:01:36 +0100
committerDavid Baker <dbkr@matrix.org>2014-09-24 16:01:36 +0100
commit5383ba55870079076277ee6e83458f6cd7ceee85 (patch)
tree8cbcb4c1a2f5bc471f68ed56b7b89e87d3f6ab7b /synapse/config
parentUse standard base64 encoding with padding to get the same result as (diff)
downloadsynapse-5383ba55870079076277ee6e83458f6cd7ceee85.tar.xz
rename endpoint to better reflect what it is and allow specifying multiple uris
Diffstat (limited to 'synapse/config')
-rw-r--r--synapse/config/voip.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/config/voip.py b/synapse/config/voip.py
index a47e81037a..3a211ae6b6 100644
--- a/synapse/config/voip.py
+++ b/synapse/config/voip.py
@@ -19,7 +19,7 @@ class VoipConfig(Config):
 
     def __init__(self, args):
         super(VoipConfig, self).__init__(args)
-        self.turn_uri = args.turn_uri
+        self.turn_uris = args.turn_uris.split(",")
         self.turn_shared_secret = args.turn_shared_secret
         self.turn_user_lifetime = args.turn_user_lifetime
 
@@ -28,8 +28,8 @@ class VoipConfig(Config):
         super(VoipConfig, cls).add_arguments(parser)
         group = parser.add_argument_group("voip")
         group.add_argument(
-            "--turn-uri", type=str, default=None,
-            help="The public URI of the TURN server to give to clients"
+            "--turn-uris", type=str, default=None,
+            help="The public URIs of the TURN server to give to clients"
         )
         group.add_argument(
             "--turn-shared-secret", type=str, default=None,