修复语法
parent
c0f5c32734
commit
1e42110b1c
|
@ -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 []
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue