Allow healthz command without auth

Fixes #691
This commit is contained in:
tidwall 2023-07-31 04:51:14 -07:00
parent c1ca106706
commit 6dd6e09af9
1 changed files with 1 additions and 1 deletions

View File

@ -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