You've already forked node-redis
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:
@@ -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:') {
|
||||
|
Reference in New Issue
Block a user