mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-27 00:09:59 -05:00
Coturn's timestamps are in seconds, not milliseconds
This commit is contained in:
parent
06a5a40e90
commit
51edfeb3d0
@ -36,7 +36,7 @@ class VoipRestServlet(RestServlet):
|
|||||||
if not turnUris or not turnSecret or not userLifetime:
|
if not turnUris or not turnSecret or not userLifetime:
|
||||||
defer.returnValue( (200, {}) )
|
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())
|
username = "%d:%s" % (expiry, auth_user.to_string())
|
||||||
|
|
||||||
mac = hmac.new(turnSecret, msg=username, digestmod=hashlib.sha1)
|
mac = hmac.new(turnSecret, msg=username, digestmod=hashlib.sha1)
|
||||||
|
Loading…
Reference in New Issue
Block a user