Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
program_test: bind to all interfaces (#2686)
Summary: These tests are currently broken on IPv6-only systems. While it’s valid to open a _socket_ that binds to `("localhost", 0)` even if the system only supports IPv6, it’s not valid to start a _Werkzeug server_ with host `localhost`, because Werkzeug detects `localhost` as an IPv4 address and will open an `AF_INET` socket, causing catastrophe. This restores the test behavior prior to #2589, which IMHO isn’t great, but unbreaks these tests on IPv6-only systems. Test Plan: This test still works on my dual-IPv4/IPv6 machine, and now also works on an IPv6-only machine where previously it failed with `EAFNOSUPPORT`. wchargin-branch: program-test-bind-all
- Loading branch information