Make stream keys objects with comment instead of string slice

This commit is contained in:
Gabe Kangas
2022-11-29 16:05:44 -08:00
parent c9e3ccad45
commit c4dc802941
8 changed files with 46 additions and 19 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ func HandleConn(c *rtmp.Conn, nc net.Conn) {
validStreamingKeys := data.GetStreamKeys()
for _, key := range validStreamingKeys {
if secretMatch(key, c.URL.Path) {
if secretMatch(key.Key, c.URL.Path) {
accessGranted = true
break
}