Merge d26c61c240012aa8910318528cf29910a5982128 into eeb5822aa765e7af21d856333b255b8b7e370063
This commit is contained in:
commit
cafe0f1d46
@ -26,9 +26,15 @@ monitored_hosts.forEach(get_cert_parameters)
|
||||
* @param {array} array The
|
||||
*/
|
||||
function get_cert_parameters(element, index, array) {
|
||||
var temp = element.split(':');
|
||||
var port = 443;
|
||||
if (temp.length == 2) {
|
||||
port = parseInt(temp[1]);
|
||||
element = temp[0];
|
||||
}
|
||||
var options = {
|
||||
hostname: element,
|
||||
port: 443,
|
||||
port: port,
|
||||
method: 'GET'
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user