mirror of
https://github.com/datarhei/core.git
synced 2025-09-26 20:11:29 +08:00
Fix wrong log output when receiving a RTMP stream
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user