mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 00:24:54 -04:00
Make turn server endpoint return an empty object if no turn servers to
match the normal response. Don't break if the turn_uris option isn't present.
This commit is contained in:
parent
6806caffc7
commit
a31bf77776
2 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ class VoipRestServlet(RestServlet):
|
|||
turnSecret = self.hs.config.turn_shared_secret
|
||||
userLifetime = self.hs.config.turn_user_lifetime
|
||||
if not turnUris or not turnSecret or not userLifetime:
|
||||
defer.returnValue( (200, {"uris": []}) )
|
||||
defer.returnValue( (200, {}) )
|
||||
|
||||
expiry = self.hs.get_clock().time_msec() + userLifetime
|
||||
username = "%d:%s" % (expiry, auth_user.to_string())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue