diff --git a/index.js b/index.js index 6ec5ab3b7a..5c40333bbf 100644 --- a/index.js +++ b/index.js @@ -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