Skip to content

Add Redis auth support - #274

Open
nining wants to merge 2 commits into
viabtc:masterfrom
nining:feature/redis-auth
Open

Add Redis auth support#274
nining wants to merge 2 commits into
viabtc:masterfrom
nining:feature/redis-auth

Conversation

@nining

@nining nining commented Dec 17, 2020

Copy link
Copy Markdown

Added Redis auth support for password protected Redis servers.

Comment thread utils/ut_redis.c
if (strlen(context->auth)) {
reply = redisCommand(redis, "AUTH %s", context->auth);
if (redis == NULL || reply->type == REDIS_REPLY_ERROR) {
printf("redis auth failed\n");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

printf is not good, use log_stderr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants