Merge pull request #2300 from AndreevDm/patch-1

Do not wrap in square brackets already wrapped IPv6 addresses v2
pull/2323/head
Nikita Koksharov 5 years ago committed by GitHub
commit 3920cc814d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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