From 1e42110b1c2e23f07e60b62d7620419b51a78057 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=92=80=E7=92=A8=E6=A2=A6=E6=98=9F?= <157385609+cuicanmengxing@users.noreply.github.com> Date: Sun, 12 May 2024 12:04:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AF=AD=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/mitmproxy/src/lib/dns/https.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/mitmproxy/src/lib/dns/https.js b/packages/mitmproxy/src/lib/dns/https.js index ef1cf56..4aca763 100644 --- a/packages/mitmproxy/src/lib/dns/https.js +++ b/packages/mitmproxy/src/lib/dns/https.js @@ -5,12 +5,12 @@ const log = require('../../utils/util.log') const dohQueryAsync = promisify(doh.query) module.exports = class DNSOverHTTPS extends BaseDNS { - constructor(dnsServer) { + constructor (dnsServer) { super() this.dnsServer = dnsServer } - async _lookup(hostname) { + async _lookup (hostname) { // 直接判断域名是否为example.com if (hostname === 'github.com') { log.info('域名github.com使用内置IP集') @@ -43,4 +43,4 @@ module.exports = class DNSOverHTTPS extends BaseDNS { return [] } } -} \ No newline at end of file +}