Skip to content

Commit 5a3d321

Browse files
authored
Clarify allowed IP formats in dnsLookup.js
Updated comment to specify that IPv6:port format is prohibited.
1 parent 146cbdd commit 5a3d321

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/mitmproxy/src/lib/proxy/mitmproxy/dnsLookup.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function normalizeIp(ip) {
1616
}
1717
}
1818

19-
// IPv4:port 或 IPv6:port
19+
// IPv4:port (禁止使用IPv6:port格式)
2020
const lastColon = ip.lastIndexOf(':')
2121
if (lastColon > -1) {
2222
const maybeHost = ip.slice(0, lastColon)
@@ -160,4 +160,4 @@ module.exports = {
160160
}
161161
}
162162
},
163-
}
163+
}

0 commit comments

Comments
 (0)