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 +}