Skip to content
Snippets Groups Projects
Commit 51edfeb3 authored by David Baker's avatar David Baker
Browse files

Coturn's timestamps are in seconds, not milliseconds

parent 06a5a40e
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ class VoipRestServlet(RestServlet):
if not turnUris or not turnSecret or not userLifetime:
defer.returnValue( (200, {}) )
expiry = self.hs.get_clock().time_msec() + userLifetime
expiry = (self.hs.get_clock().time_msec() + userLifetime) / 1000
username = "%d:%s" % (expiry, auth_user.to_string())
mac = hmac.new(turnSecret, msg=username, digestmod=hashlib.sha1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment