修复语法

pull/312/head
璀璨梦星 2024-05-12 12:04:29 +08:00
parent c0f5c32734
commit 1e42110b1c
1 changed files with 3 additions and 3 deletions

View File

@ -5,12 +5,12 @@ const log = require('../../utils/util.log')
const dohQueryAsync = promisify(doh.query) const dohQueryAsync = promisify(doh.query)
module.exports = class DNSOverHTTPS extends BaseDNS { module.exports = class DNSOverHTTPS extends BaseDNS {
constructor(dnsServer) { constructor (dnsServer) {
super() super()
this.dnsServer = dnsServer this.dnsServer = dnsServer
} }
async _lookup(hostname) { async _lookup (hostname) {
// 直接判断域名是否为example.com // 直接判断域名是否为example.com
if (hostname === 'github.com') { if (hostname === 'github.com') {
log.info('域名github.com使用内置IP集') log.info('域名github.com使用内置IP集')