|
|
@@ -335,7 +335,7 @@ public final class RemoteClusterService extends AbstractComponent implements Clo
|
|
|
}));
|
|
|
}
|
|
|
|
|
|
- static final InetSocketAddress parseSeedAddress(String remoteHost) {
|
|
|
+ static InetSocketAddress parseSeedAddress(String remoteHost) {
|
|
|
int portSeparator = remoteHost.lastIndexOf(':'); // in case we have a IPv6 address ie. [::1]:9300
|
|
|
if (portSeparator == -1 || portSeparator == remoteHost.length()) {
|
|
|
throw new IllegalArgumentException("remote hosts need to be configured as [host:port], found [" + remoteHost + "] instead");
|