pull/453/head
xiaojunnuo 2025-06-30 23:48:19 +08:00
parent 60f055f293
commit 0f64671dc0
1 changed files with 8 additions and 8 deletions

View File

@ -2,7 +2,7 @@ import { logger, safePromise, utils } from "@certd/basic";
import { merge } from "lodash-es"; import { merge } from "lodash-es";
import https from "https"; import https from "https";
import { PeerCertificate } from "tls"; import { PeerCertificate } from "tls";
import { TCPClient } from "dns2"; // import { TCPClient } from "dns2";
export type SiteTestReq = { export type SiteTestReq = {
host: string; // 只用域名部分 host: string; // 只用域名部分
@ -63,13 +63,13 @@ export class SiteTester {
options.host = ipAddress; options.host = ipAddress;
} }
let dnsClients = []; // let dnsClients = [];
if (req.dnsServer && req.dnsServer.length > 0) { // if (req.dnsServer && req.dnsServer.length > 0) {
for (let dns of req.dnsServer) { // for (let dns of req.dnsServer) {
const dnsClient = TCPClient({ dns }); // const dnsClient = TCPClient({ dns });
dnsClients.push(dnsClient); // dnsClients.push(dnsClient);
} // }
} // }
// async function customLookup(hostname, options, callback) { // async function customLookup(hostname, options, callback) {
// for (let client of dnsClients) { // for (let client of dnsClients) {