Fix wrong log output when receiving a RTMP stream

This commit is contained in:
Ingo Oppermann 2024-04-19 11:36:02 +02:00
parent e35c3dead3
commit 4739958e12
No known key found for this signature in database
GPG Key ID: 2AB32426E9DD229E

View File

@ -449,12 +449,12 @@ func (s *server) handlePublish(conn *rtmp.Conn) {
path, token := getToken(conn.URL)
if len(token) == 0 {
s.log("PLAY", "FORBIDDEN", path, "no streamkey provided", client)
s.log("PUBLISH", "FORBIDDEN", path, "no streamkey provided", client)
return
}
if s.token != token {
s.log("PLAY", "FORBIDDEN", path, "invalid streamkey ("+token+")", client)
s.log("PUBLISH", "FORBIDDEN", path, "invalid streamkey ("+token+")", client)
return
}