Fix wrong log output when receiving a RTMP stream
This commit is contained in:
parent
e35c3dead3
commit
4739958e12
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue