注释调整。
parent
9d9a0ff8b8
commit
3b7d0dd280
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue