Merge branch 'master' of github.com:redisson/redisson

pull/2323/head
Nikita Koksharov 6 years ago
commit 64d4ee5099

@ -501,7 +501,7 @@ public class SentinelConnectionManager extends MasterSlaveConnectionManager {
if (host.contains(":")){
String pureHost = host.replaceAll("[\\[\\]]", "");
host = applyNatMap(pureHost);
if (host.contains(":")) {
if (host.contains(":") && !host.startsWith("[")) {
host = "[" + host + "]";
}
} else {

Loading…
Cancel
Save