Merge pull request #95 from aliabbasjaffri/HA-Cluster-Connectivity-Issue

🐛 Adding object reference to externalTcpIp
This commit is contained in:
Nicolas Dextraze 2020-03-02 08:46:39 -08:00 committed by GitHub
commit eb56e077f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -227,7 +227,7 @@ ClusterDnsEndPointDiscoverer.prototype._tryDetermineBestNode = function (members
var normTcp = {host: node.externalTcpIp, port: node.externalTcpPort}; var normTcp = {host: node.externalTcpIp, port: node.externalTcpPort};
var secTcp = node.externalSecureTcpPort > 0 var secTcp = node.externalSecureTcpPort > 0
? {host: externalTcpIp, port: node.externalSecureTcpPort} ? {host: node.externalTcpIp, port: node.externalSecureTcpPort}
: null; : null;
this._log.info(util.format("Discovering: found best choice [%j,%j] (%s).", normTcp, secTcp === null ? "n/a" : secTcp, node.state)); 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); return new NodeEndPoints(normTcp, secTcp);