]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.10] gh-115197: Stop resolving host in urllib.request proxy bypass (GH-115210)...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 19 Mar 2024 10:53:33 +0000 (11:53 +0100)
committerGitHub <noreply@github.com>
Tue, 19 Mar 2024 10:53:33 +0000 (11:53 +0100)
commiteac14953a03d3f4adb91ca3adde6564e405cc59f
tree2217175d2a2379d3a09ad96c5b66e2cdf504be34
parent516a6d4237fe3b9fb02a800b81a0a3153f78685e
[3.10] gh-115197: Stop resolving host in urllib.request proxy bypass (GH-115210) (GH-116070)

Use of a proxy is intended to defer DNS for the hosts to the proxy itself, rather than a potential for information leak of the host doing DNS resolution itself for any reason.  Proxy bypass lists are strictly name based.  Most implementations of proxy support agree.
(cherry picked from commit c43b26d02eaa103756c250e8d36829d388c5f3be)

Co-authored-by: Weii Wang <weii.wang@canonical.com>
Lib/test/test_urllib2.py
Lib/urllib/request.py
Misc/NEWS.d/next/Library/2024-02-09-19-41-48.gh-issue-115197.20wkWH.rst [new file with mode: 0644]