Fix: Add assert for X509Certificate

This commit is contained in:
Nelson Chan 2023-10-28 15:36:42 +08:00
parent 55fbc3e1d9
commit 49ebb88156
No known key found for this signature in database

View file

@ -741,7 +741,7 @@ exports.checkCertificateHostname = function (certBuffer, hostname) {
return true; return true;
} }
if (!certBuffer || !hostname) { if (!X509Certificate || !certBuffer || !hostname) {
return true; return true;
} }