Skip to content

Commit

Permalink
Fix OUTPUT client command requiring authentication
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tidwall committed Jun 4, 2020
1 parent 9c6be0f commit b7978f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b7978f2

Please sign in to comment.