mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-03-04 08:25:57 +00:00
Chore: Record start time after null check
Co-authored-by: Adam Stachowicz <saibamenppl@gmail.com>
This commit is contained in:
parent
1a2f5b6380
commit
1f62c78f4d
1 changed files with 2 additions and 2 deletions
|
@ -657,13 +657,13 @@ const parseCertificateInfo = function (info) {
|
||||||
* @returns {object} Object containing certificate information
|
* @returns {object} Object containing certificate information
|
||||||
*/
|
*/
|
||||||
exports.checkCertificate = function (socket) {
|
exports.checkCertificate = function (socket) {
|
||||||
let certInfoStartTime = dayjs().valueOf();
|
|
||||||
|
|
||||||
// Return null if there is no socket
|
// Return null if there is no socket
|
||||||
if (socket === undefined || socket == null) {
|
if (socket === undefined || socket == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let certInfoStartTime = dayjs().valueOf();
|
||||||
|
|
||||||
const info = socket.getPeerCertificate(true);
|
const info = socket.getPeerCertificate(true);
|
||||||
const valid = socket.authorized || false;
|
const valid = socket.authorized || false;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue