Change to hostname in request options, to help with dns parsing.
This commit is contained in:
parent
f75a549aa1
commit
f11710f48a
@ -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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user