Browse Source

Fix redis connect failed when there are "@" in redis password.

pull/1252/head
Clarence 5 years ago
parent
commit
320459873f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      daemon/main.c

+ 1
- 1
daemon/main.c View File

@ -334,7 +334,7 @@ static int redis_ep_parse(endpoint_t *ep, int *db, char **auth, const char *auth
char *sl; char *sl;
long l; long l;
sl = strchr(str, '@');
sl = strrchr(str, '@');
if (sl) { if (sl) {
*sl = 0; *sl = 0;
*auth = g_strdup(str); *auth = g_strdup(str);


Loading…
Cancel
Save