mirror of https://github.com/tidwall/tile38.git
requirepass with no password with remove auth, fixes #39
This commit is contained in:
parent
01c05b2ce9
commit
a2fa6444b1
|
@ -242,7 +242,9 @@ func (c *Controller) cmdConfigSet(msg *server.Message) (res string, err error) {
|
|||
}
|
||||
var value string
|
||||
if vs, value, ok = tokenval(vs); !ok {
|
||||
return "", errInvalidNumberOfArguments
|
||||
if strings.ToLower(name) != "requirepass" {
|
||||
return "", errInvalidNumberOfArguments
|
||||
}
|
||||
}
|
||||
if len(vs) != 0 {
|
||||
return "", errInvalidNumberOfArguments
|
||||
|
|
Loading…
Reference in New Issue