Skip to content

Commit 31838dd

Browse files
committed
set TTL of credentials to 24h for now
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
1 parent 17c4da6 commit 31838dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Util.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ public static function generateTurnSettings(IConfig $config, ISession $session,
8282

8383
$time = $timeFactory->getTime();
8484

85-
$string = sprintf('%d:%s', $time + 3600, $sessionId);
85+
// the credentials are valid for 24h - FIXME add the TTL to the response and properly reconnect then
86+
$string = sprintf('%d:%s', $time + 86400, $sessionId);
8687
$hashedString = hash_hmac('sha1', $string, $turnServerSecret, true);
8788
$password = base64_encode($hashedString);
8889

0 commit comments

Comments
 (0)