注释调整。
parent
9d9a0ff8b8
commit
3b7d0dd280
|
@ -9,10 +9,9 @@ const dohQueryAsync = promisify(doh.query)
|
||||||
function mapToList (ipMap) {
|
function mapToList (ipMap) {
|
||||||
const ipList = []
|
const ipList = []
|
||||||
for (const key in ipMap) {
|
for (const key in ipMap) {
|
||||||
if (!ipMap[key]) {
|
if (ipMap[key]) { // 配置为 ture 时才生效
|
||||||
continue
|
ipList.push(key)
|
||||||
}
|
}
|
||||||
ipList.push(key)
|
|
||||||
}
|
}
|
||||||
return ipList
|
return ipList
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,10 +4,9 @@ const BaseDNS = require('./base')
|
||||||
function mapToList (ipMap) {
|
function mapToList (ipMap) {
|
||||||
const ipList = []
|
const ipList = []
|
||||||
for (const key in ipMap) {
|
for (const key in ipMap) {
|
||||||
if (!ipMap[key]) {
|
if (ipMap[key]) { // 配置为 ture 时才生效
|
||||||
continue
|
ipList.push(key)
|
||||||
}
|
}
|
||||||
ipList.push(key)
|
|
||||||
}
|
}
|
||||||
return ipList
|
return ipList
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue