Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
35fe5993
Commit
35fe5993
authored
Jan 15, 2019
by
antirez
Browse files
ACL: automatically authenticate the nopass default user.
parent
52e99229
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
35fe5993
...
@@ -125,7 +125,9 @@ client *createClient(int fd) {
...
@@ -125,7 +125,9 @@ client *createClient(int fd) {
c
->
sentlen
=
0
;
c
->
sentlen
=
0
;
c
->
flags
=
0
;
c
->
flags
=
0
;
c
->
ctime
=
c
->
lastinteraction
=
server
.
unixtime
;
c
->
ctime
=
c
->
lastinteraction
=
server
.
unixtime
;
c
->
authenticated
=
0
;
/* If the default user does not require authentication, the user is
* directly authenticated. */
c
->
authenticated
=
(
c
->
user
->
flags
&
USER_FLAG_NOPASS
)
!=
0
;
c
->
replstate
=
REPL_STATE_NONE
;
c
->
replstate
=
REPL_STATE_NONE
;
c
->
repl_put_online_on_ack
=
0
;
c
->
repl_put_online_on_ack
=
0
;
c
->
reploff
=
0
;
c
->
reploff
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment