mirror of https://github.com/BTCPrivate/z-nomp.git
adding redis auth password
This commit is contained in:
parent
d96fa1e06b
commit
bdbe9a7896
|
@ -27,6 +27,9 @@ module.exports = function(logger, poolConfig){
|
|||
var logSubCat = 'Thread ' + (parseInt(forkId) + 1);
|
||||
|
||||
var connection = redis.createClient(redisConfig.port, redisConfig.host);
|
||||
// redis auth if needed
|
||||
connection.auth(redisConfig.password);
|
||||
|
||||
connection.on('ready', function(){
|
||||
logger.debug(logSystem, logComponent, logSubCat, 'Share processing setup with redis (' + redisConfig.host +
|
||||
':' + redisConfig.port + ')');
|
||||
|
|
Loading…
Reference in New Issue