mirror of
https://github.com/certd/certd.git
synced 2026-05-17 22:07:34 +08:00
chore:
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user