Skip to content

Commit 9d9a0ff

Browse files
bugfix: 预设IP设置为map而非list后,IP取值有误的问题修复。
1 parent e320f80 commit 9d9a0ff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function mapToList (ipMap) {
1212
if (!ipMap[key]) {
1313
continue
1414
}
15-
ipList.push(ipMap[key])
15+
ipList.push(key)
1616
}
1717
return ipList
1818
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function mapToList (ipMap) {
77
if (!ipMap[key]) {
88
continue
99
}
10-
ipList.push(ipMap[key])
10+
ipList.push(key)
1111
}
1212
return ipList
1313
}

0 commit comments

Comments
 (0)