Skip to content

Commit

Permalink
Allow healthz command without auth
Browse files Browse the repository at this point in the history
Fixes #691
  • Loading branch information
tidwall committed Jul 31, 2023
1 parent c1ca106 commit 6dd6e09
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 @@ -965,7 +965,7 @@ func (s *Server) handleInputCommand(client *Client, msg *Message) error {

var write bool

if (!client.authd || cmd == "auth") && cmd != "output" {
if (!client.authd || cmd == "auth") && cmd != "output" && cmd != "healthz" {
if s.config.requirePass() != "" {
password := ""
// This better be an AUTH command or the Message should contain an Auth
Expand Down

0 comments on commit 6dd6e09

Please sign in to comment.