1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-09 00:22:08 +03:00

Adapt Alibaba Cloud kvstore

This commit is contained in:
chestermax01
2018-05-21 15:46:30 +08:00
committed by GitHub
parent 673b177075
commit 35facdb1fb

View File

@@ -29,7 +29,7 @@ module.exports = function createClient (port_arg, host_arg, options) {
// [redis:]//[[user][:password]@][host][:port][/db-number][?db=db-number[&password=bar[&option=value]]]
if (parsed.slashes) { // We require slashes
if (parsed.auth) {
options.password = parsed.auth.split(':')[1];
options.password = parsed.auth.slice(parsed.auth.indexOf(':') + 1);
}
if (parsed.protocol) {
if (parsed.protocol === 'rediss:') {