mirror of
https://github.com/datarhei/core.git
synced 2025-10-05 07:57:13 +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)
|
path, token := getToken(conn.URL)
|
||||||
|
|
||||||
if len(token) == 0 {
|
if len(token) == 0 {
|
||||||
s.log("PLAY", "FORBIDDEN", path, "no streamkey provided", client)
|
s.log("PUBLISH", "FORBIDDEN", path, "no streamkey provided", client)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if s.token != token {
|
if s.token != token {
|
||||||
s.log("PLAY", "FORBIDDEN", path, "invalid streamkey ("+token+")", client)
|
s.log("PUBLISH", "FORBIDDEN", path, "invalid streamkey ("+token+")", client)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user