From b7978f2cf4391b0b4bf8ec07e08f2edc76f0d53d Mon Sep 17 00:00:00 2001 From: tidwall Date: Thu, 4 Jun 2020 12:53:25 -0700 Subject: [PATCH] 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 --- internal/server/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/server/server.go b/internal/server/server.go index a68f9099..957f9497 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -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