Use HTTPS also for pings

If HTTPS requests are used, the pings should also be done with HTTPS.
This commit is contained in:
Markus Mäkelä
2018-02-13 12:55:34 +02:00
parent 2e920af845
commit 8e4c6a9eee

View File

@ -275,7 +275,7 @@ function pingCluster(hosts) {
var promises = [] var promises = []
hosts.forEach(function(i) { hosts.forEach(function(i) {
promises.push(request(getUri(i, false, ''))) promises.push(request(getUri(i, this.argv.secure, '')))
}) })
return Promise.all(promises) return Promise.all(promises)