We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 879b1fc commit e8e4070Copy full SHA for e8e4070
1 file changed
packages/mitmproxy/src/lib/dns/base.js
@@ -6,7 +6,8 @@ const { DynamicChoice } = require('../choice/index')
6
function mapToList (ipMap) {
7
const ipList = []
8
for (const key in ipMap) {
9
- if (ipMap[key]) { // 配置为 ture 时才生效
+ const value = ipMap[key]
10
+ if (value && value !== 'false' && value !== '0') { // 配置为 ture 时才生效
11
ipList.push(key)
12
}
13
0 commit comments