瀏覽代碼

save

master
leiyun 10 月之前
父節點
當前提交
ffb17c9141
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/home/controller/index.js

+ 1
- 1
src/home/controller/index.js 查看文件

@@ -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);


Loading…
取消
儲存