Commit c1cd4081 authored by Antoine Cellerier's avatar Antoine Cellerier

Fix regression from 6b317395 regarding...

Fix regression from 6b317395 regarding connectivity to unconfigured cluster nodes.
parent dcd88166
......@@ -315,7 +315,13 @@ internal ClusterNode(ClusterConfiguration configuration, string raw, EndPoint or
var flags = parts[2].Split(StringSplits.Comma);
endpoint = Format.TryParseEndPoint(parts[1]);
if (endpoint == null && flags.Contains("myself"))
{
// Unconfigured cluster nodes might report themselves as endpoint ":{port}",
// hence the origin fallback value to make sure that we can address them
endpoint = origin;
}
nodeId = parts[0];
isSlave = flags.Contains("slave");
isNoAddr = flags.Contains("noaddr");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment