]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-24209: In http.server script, rely on getaddrinfo to bind to preferred address...
authorJason R. Coombs <jaraco@jaraco.com>
Thu, 7 Feb 2019 13:22:45 +0000 (08:22 -0500)
committerGitHub <noreply@github.com>
Thu, 7 Feb 2019 13:22:45 +0000 (08:22 -0500)
commitf289084c83190cc72db4a70c58f007ec62e75247
tree6fe7fe86d58952d6eb337add411c7da5ea53fc86
parent2848d9d29914948621bce26bf0d9a89f2e19b97b
bpo-24209: In http.server script, rely on getaddrinfo to bind to preferred address based on the bind parameter. (#11767)

In http.server script, rely on getaddrinfo to bind to preferred address based on the bind parameter.

As a result, now IPv6 is used as the default (including IPv4 on dual-stack systems). Enhanced tests.
Lib/http/server.py
Lib/test/test_httpservers.py
Misc/NEWS.d/next/Library/2019-02-06-01-40-55.bpo-24209.awtwPD.rst [new file with mode: 0644]