1
0
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:
Henrik Peinar
2013-05-31 10:54:11 -07:00
parent 35001fec76
commit 4dcfa0f92a

View File

@@ -67,6 +67,9 @@ function RedisClient(stream, options) {
this.closing = false;
this.server_info = {};
this.auth_pass = null;
if(options.auth_pass !== undefined) {
this.auth_pass = options.auth_pass;
}
this.parser_module = null;
this.selected_db = null; // save the selected db here, used when reconnecting