The config is not hierarchical

pull/10/head
David Baker 2014-09-23 19:17:24 +02:00
parent 14ed6799d7
commit c96ab4fcbb
1 changed files with 3 additions and 3 deletions

View File

@ -30,9 +30,9 @@ class VoipRestServlet(RestServlet):
def on_GET(self, request):
auth_user = yield self.auth.get_user_by_req(request)
turnUri = self.hs.config.voip.turn_uri
turnSecret = self.hs.config.voip.turn_shared_secret
userLifetime = self.hs.config.voip.turn_user_lifetime
turnUri = self.hs.config.turn_uri
turnSecret = self.hs.config.turn_shared_secret
userLifetime = self.hs.config.turn_user_lifetime
if not turnUri or not turnSecret or not userLifetime:
defer.returnValue( (200, {"uris": []}) )