From 11f882501f63ee7fde13bf6c888f88d091fffbf6 Mon Sep 17 00:00:00 2001 From: Ali Abbas Jaffri Date: Mon, 2 Mar 2020 15:39:32 +0100 Subject: [PATCH] :bug: Adding object reference to externalTcpIp: Solves locating cluster via gossip seeds --- src/core/clusterDnsEndPointDiscoverer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/clusterDnsEndPointDiscoverer.js b/src/core/clusterDnsEndPointDiscoverer.js index b0a688a..8552974 100644 --- a/src/core/clusterDnsEndPointDiscoverer.js +++ b/src/core/clusterDnsEndPointDiscoverer.js @@ -227,7 +227,7 @@ ClusterDnsEndPointDiscoverer.prototype._tryDetermineBestNode = function (members var normTcp = {host: node.externalTcpIp, port: node.externalTcpPort}; var secTcp = node.externalSecureTcpPort > 0 - ? {host: externalTcpIp, port: node.externalSecureTcpPort} + ? {host: node.externalTcpIp, port: node.externalSecureTcpPort} : null; this._log.info(util.format("Discovering: found best choice [%j,%j] (%s).", normTcp, secTcp === null ? "n/a" : secTcp, node.state)); return new NodeEndPoints(normTcp, secTcp);