Fix OUTPUT client command requiring authentication
This commit fixes an issue where the OUTPUT command requires authentication when a server password has been set with CONFIG SET requirepass. This was causing problems with clients that use json responses, like the tile38-cli. Fixes #564
This commit is contained in:
parent
9c6be0f78e
commit
b7978f2cf4
@ -771,7 +771,7 @@ func (server *Server) handleInputCommand(client *Client, msg *Message) error {
|
||||
|
||||
var write bool
|
||||
|
||||
if !client.authd || msg.Command() == "auth" {
|
||||
if (!client.authd || msg.Command() == "auth") && msg.Command() != "output" {
|
||||
if server.config.requirePass() != "" {
|
||||
password := ""
|
||||
// This better be an AUTH command or the Message should contain an Auth
|
||||
|
Loading…
x
Reference in New Issue
Block a user