Skip to content

Commit

Permalink
Authenticate cluster node connections when a password is set #190
Browse files Browse the repository at this point in the history
  • Loading branch information
mp911de committed Feb 4, 2016
1 parent 6ed61cb commit 8c06cbc
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,10 @@ <K, V> RedisAsyncConnectionImpl<K, V> connectNode(RedisCodec<K, V> codec, String

connection.registerCloseables(closeableResources, connection);

RedisURI redisURI = initialUris.iterator().next();
if (redisURI.getPassword() != null && redisURI.getPassword().length != 0) {
connection.auth(new String(redisURI.getPassword()));
}
return connection;
}

Expand Down

0 comments on commit 8c06cbc

Please sign in to comment.