注释调整。

pull/430/head
王良 2025-01-02 14:53:29 +08:00
parent 9d9a0ff8b8
commit 3b7d0dd280
2 changed files with 4 additions and 6 deletions

View File

@ -9,10 +9,9 @@ const dohQueryAsync = promisify(doh.query)
function mapToList (ipMap) {
const ipList = []
for (const key in ipMap) {
if (!ipMap[key]) {
continue
if (ipMap[key]) { // 配置为 ture 时才生效
ipList.push(key)
}
ipList.push(key)
}
return ipList
}

View File

@ -4,10 +4,9 @@ const BaseDNS = require('./base')
function mapToList (ipMap) {
const ipList = []
for (const key in ipMap) {
if (!ipMap[key]) {
continue
if (ipMap[key]) { // 配置为 ture 时才生效
ipList.push(key)
}
ipList.push(key)
}
return ipList
}