mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-03-05 00:44:46 +00:00
Fix: Add assert for X509Certificate
This commit is contained in:
parent
55fbc3e1d9
commit
49ebb88156
1 changed files with 1 additions and 1 deletions
|
@ -741,7 +741,7 @@ exports.checkCertificateHostname = function (certBuffer, hostname) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!certBuffer || !hostname) {
|
if (!X509Certificate || !certBuffer || !hostname) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue