Merge d26c61c240012aa8910318528cf29910a5982128 into eeb5822aa765e7af21d856333b255b8b7e370063

This commit is contained in:
Jose Vasconcellos 2016-08-01 11:27:26 +00:00 committed by GitHub
commit cafe0f1d46

View File

@ -26,9 +26,15 @@ monitored_hosts.forEach(get_cert_parameters)
* @param {array} array The * @param {array} array The
*/ */
function get_cert_parameters(element, index, array) { 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 = { var options = {
hostname: element, hostname: element,
port: 443, port: port,
method: 'GET' method: 'GET'
}; };