mirror of
https://github.com/certd/certd.git
synced 2025-11-25 09:10:11 +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 请求
|
||||
const requestPromise = safePromise((resolve, reject) => {
|
||||
|
||||
Reference in New Issue
Block a user