소스 검색

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


불러오는 중...
취소
저장