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

pull/1252/head
Clarence 5 years ago
parent df5f810651
commit 320459873f

@ -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