]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-115197: Stop resolving host in urllib.request proxy bypass (GH-115210)
authorWeii Wang <weii.wang@canonical.com>
Wed, 28 Feb 2024 20:15:52 +0000 (04:15 +0800)
committerGitHub <noreply@github.com>
Wed, 28 Feb 2024 20:15:52 +0000 (12:15 -0800)
commitc43b26d02eaa103756c250e8d36829d388c5f3be
tree035e743458a83d1bb135b5ed078b38ad7dfaaf05
parent6c1c94dc517b77afcebb25436a4b7b0d13b6eb4d
gh-115197: Stop resolving host in urllib.request proxy bypass (GH-115210)

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.
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]