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
|
var value string
|
||||||
if vs, value, ok = tokenval(vs); !ok {
|
if vs, value, ok = tokenval(vs); !ok {
|
||||||
return "", errInvalidNumberOfArguments
|
if strings.ToLower(name) != "requirepass" {
|
||||||
|
return "", errInvalidNumberOfArguments
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if len(vs) != 0 {
|
if len(vs) != 0 {
|
||||||
return "", errInvalidNumberOfArguments
|
return "", errInvalidNumberOfArguments
|
||||||
|
Loading…
x
Reference in New Issue
Block a user