Apply ttl check only when authenticate allocation creating (#4526)

* Apply ttl check only when authenticate allocation creating

TTL check could reject allocation/persmission refresh in
security enhancement #4505, cause long-live session disconnect
when turn credential is expired.
Only check ttl on allocation creating to prevent abusing leaked
credential but keep long-live session work.
This commit is contained in:
cnderrauber
2026-05-15 14:55:05 +08:00
committed by GitHub
parent b32933b0d4
commit 89faaeba82
9 changed files with 180 additions and 32 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ import (
"strconv"
"time"
"github.com/pion/turn/v4"
"github.com/pion/turn/v5"
"github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/rs/cors"
"github.com/twitchtv/twirp"