leiyun hace 10 meses
padre
commit
ffb17c9141
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      src/home/controller/index.js

+ 1
- 1
src/home/controller/index.js Ver fichero

@@ -91,7 +91,7 @@ function checkCertExpiry (domain) {
agent: new https.Agent({ rejectUnauthorized: false }) // 避免自签名证书报错
}, (res) => {
const cert = res.socket.getPeerCertificate();
console.log(cert);
// console.log(cert);
let subjectaltname = cert.subjectaltname ? cert.subjectaltname.replace('DNS:', '') : '';
if (cert.valid_to && subjectaltname == domain) {
resolve(cert.valid_to);


Cargando…
Cancelar
Guardar