Support including port part in trusted-host by frostming · Pull Request #6909 · pypa/pip (original) (raw)

Closes #6886
Closes #6710

This PR proposes official support for including port part in trusted-host option, for both HTTP and HTTPS indexes. So:

--trusted-host example.com trusts all these indexes:

While --trusted-host example.com:8080 only trusts the indexes with port 8080 exactly: