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