vault-high-availability
Advanced tools
Comparing version 1.0.45 to 1.0.46
@@ -12,2 +12,3 @@ /** | ||
var init = function (vaultAddress) { | ||
if (process.env.IGNORE_VAULT_LEADER_RESOLVER == "true") { | ||
@@ -34,2 +35,4 @@ this.addressResolver = vaultAddress; | ||
var setStrategey = function (addressResolver) { | ||
@@ -36,0 +39,0 @@ logger.debug("Set strategey --> findActiveIp"); |
{ | ||
"name": "vault-high-availability", | ||
"version": "1.0.45", | ||
"version": "1.0.46", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -188,3 +188,5 @@ 'use strict'; | ||
var replaceDnsWithIp = function (url) { | ||
log.debug("replaceDnsWithIp function called"); | ||
if (this.ip) { | ||
log.debug("Found the ip, going to replace the url with the ip:" + this.ip); | ||
var urlObject = urlLib.parse(url); | ||
@@ -195,4 +197,6 @@ urlObject.host = undefined; | ||
} else { // in case dns resolving failed on startup we still want to find the active. otherwise it will wait until the first failure. | ||
log.debug("leader IP not found, calling findActiveIp function"); | ||
findActiveIp.call(this); | ||
} | ||
log.debug("URL after resolving:" + url); | ||
return url | ||
@@ -199,0 +203,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36552
12
684