Skip to content

Commit

Permalink
Bugfix: Use authentication in cluster topology refresh #171
Browse files Browse the repository at this point in the history
  • Loading branch information
mp911de committed Dec 25, 2015
1 parent 0a2a6f3 commit 5e2c9f6
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ private Map<RedisURI, StatefulRedisConnection<String, String>> getConnections(It

try {
StatefulRedisConnection<String, String> connection = client.connectToNode(redisURI.getResolvedAddress());
if(redisURI.getPassword() != null && redisURI.getPassword().length != 0) {
connection.sync().auth(new String(redisURI.getPassword()));
}
connections.put(redisURI, connection);
} catch (RedisConnectionException e) {
if (logger.isDebugEnabled()) {
Expand Down

0 comments on commit 5e2c9f6

Please sign in to comment.