Change to hostname in request options, to help with dns parsing.

This commit is contained in:
Craine Runton 2016-05-24 17:05:36 -06:00
parent f75a549aa1
commit f11710f48a

View File

@ -27,10 +27,11 @@ monitored_hosts.forEach(get_cert_parameters)
*/
function get_cert_parameters(element, index, array) {
var options = {
host: element,
hostname: element,
port: 443,
method: 'GET'
};
var req = https.request(options, function(res) {
var cert = res.connection.getPeerCertificate();
var parsed = {