Skip to content

Commit e8e4070

Browse files
optimize: 优化配置。
1 parent 879b1fc commit e8e4070

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • packages/mitmproxy/src/lib/dns

packages/mitmproxy/src/lib/dns/base.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ const { DynamicChoice } = require('../choice/index')
66
function mapToList (ipMap) {
77
const ipList = []
88
for (const key in ipMap) {
9-
if (ipMap[key]) { // 配置为 ture 时才生效
9+
const value = ipMap[key]
10+
if (value && value !== 'false' && value !== '0') { // 配置为 ture 时才生效
1011
ipList.push(key)
1112
}
1213
}

0 commit comments

Comments
 (0)