mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
fix redundant modifier
This commit is contained in:
parent
ea0e72f3d9
commit
d36fc66af1
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user