Skip to content
Snippets Groups Projects
Commit 757b5634 authored by Peter Gerwinski's avatar Peter Gerwinski
Browse files

increase live time of TURN credentials to allow for reconnections if necessary

parent aa1f2c5b
No related merge requests found
......@@ -7,7 +7,7 @@ from sys import argv
user = argv[1]
secret = argv[2]
ttl = 1 * 3600 # Time to live
ttl = 24 * 3600 # Time to live
timestamp = int(time()) + ttl
username = str(timestamp) + ':' + user
dig = hmac.new(secret, username, hashlib.sha1).digest()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment