You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
Auth_pass should be part of options
This commit is contained in:
3
index.js
3
index.js
@@ -67,6 +67,9 @@ function RedisClient(stream, options) {
|
|||||||
this.closing = false;
|
this.closing = false;
|
||||||
this.server_info = {};
|
this.server_info = {};
|
||||||
this.auth_pass = null;
|
this.auth_pass = null;
|
||||||
|
if(options.auth_pass !== undefined) {
|
||||||
|
this.auth_pass = options.auth_pass;
|
||||||
|
}
|
||||||
this.parser_module = null;
|
this.parser_module = null;
|
||||||
this.selected_db = null; // save the selected db here, used when reconnecting
|
this.selected_db = null; // save the selected db here, used when reconnecting
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user