ACL: remove server.requirepass + some refactoring.

This commit is contained in:
antirez
2019-01-18 11:49:30 +01:00
parent 7de6e30241
commit c8391388c2
6 changed files with 18 additions and 11 deletions

View File

@ -810,7 +810,7 @@ static void acceptCommonHandler(int fd, int flags, char *ip) {
* user what to do to fix it if needed. */
if (server.protected_mode &&
server.bindaddr_count == 0 &&
server.requirepass == NULL &&
DefaultUser->flags & USER_FLAG_NOPASS &&
!(flags & CLIENT_UNIX_SOCKET) &&
ip != NULL)
{