diff options
author | David Baker <dbkr@matrix.org> | 2014-09-24 16:01:36 +0100 |
---|---|---|
committer | David Baker <dbkr@matrix.org> | 2014-09-24 16:01:36 +0100 |
commit | 5383ba55870079076277ee6e83458f6cd7ceee85 (patch) | |
tree | 8cbcb4c1a2f5bc471f68ed56b7b89e87d3f6ab7b /synapse/rest | |
parent | Use standard base64 encoding with padding to get the same result as (diff) | |
download | synapse-5383ba55870079076277ee6e83458f6cd7ceee85.tar.xz |
rename endpoint to better reflect what it is and allow specifying multiple uris
Diffstat (limited to 'synapse/rest')
-rw-r--r-- | synapse/rest/voip.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/synapse/rest/voip.py b/synapse/rest/voip.py index bb0108cbd1..31f3fd100d 100644 --- a/synapse/rest/voip.py +++ b/synapse/rest/voip.py @@ -24,13 +24,13 @@ import base64 class VoipRestServlet(RestServlet): - PATTERN = client_path_pattern("/voip/turnuris$") + PATTERN = client_path_pattern("/voip/turnServers$") @defer.inlineCallbacks def on_GET(self, request): auth_user = yield self.auth.get_user_by_req(request) - turnUri = self.hs.config.turn_uri + turnUris = self.hs.config.turn_uris turnSecret = self.hs.config.turn_shared_secret userLifetime = self.hs.config.turn_user_lifetime if not turnUri or not turnSecret or not userLifetime: @@ -49,9 +49,7 @@ class VoipRestServlet(RestServlet): 'username': username, 'password': password, 'ttl': userLifetime / 1000, - 'uris': [ - turnUri, - ] + 'uris': turnUris, }) ) def on_OPTIONS(self, request): |