mirror of
https://github.com/certd/certd.git
synced 2026-04-24 12:27:25 +08:00
fix: 修复证书监控某些情况下报 options.lookup不能为null的bug
This commit is contained in:
@@ -80,7 +80,11 @@ export class SiteTester {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
options.agent = new https.Agent({ keepAlive: false, lookup: customLookup });
|
const agentOptions:any = { keepAlive: false };
|
||||||
|
if (customLookup) {
|
||||||
|
agentOptions.lookup = customLookup
|
||||||
|
}
|
||||||
|
options.agent = new https.Agent(agentOptions);
|
||||||
|
|
||||||
// 创建 HTTPS 请求
|
// 创建 HTTPS 请求
|
||||||
const requestPromise = safePromise((resolve, reject) => {
|
const requestPromise = safePromise((resolve, reject) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user