Support including port part in trusted-host by frostming · Pull Request #6909 · pypa/pip (original) (raw)
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:
http://example.com
http://example.com:8080
https://example.com
https://example.com:8080
While --trusted-host example.com:8080
only trusts the indexes with port 8080 exactly:
http://example.com:8080
https://example.com:8080