Repository navigation
Description
httpx version:
Latest version: 1.7.4
Current Behavior:
-probe-all-ips or -pa do not work if the given URL has a port number at the end. I've tested https:// + 443, http:// + 80, and https:// + 8443 (https://www.cloudflare.com:8443 for example), and the bug is reproductible in all these cases:
$ httpx -u https://www.example.com:443 -probe-all-ips -silent
https://www.example.com [104.18.26.120]
$ httpx -u https://www.example.com -probe-all-ips -silent
https://www.example.com [104.18.26.120]
https://www.example.com [2606:4700::6812:1a78]
https://www.example.com [2606:4700::6812:1b78]
https://www.example.com [104.18.27.120]
Expected Behavior:
The two commands above should return the same result.
Steps To Reproduce:
Run the command on an host that has multiple A or AAAA entries and an open HTTPS service on 443.
httpx -u https://www.example.com:443 -probe-all-ips -silent
Anything else:
For completeness, the issue is not present if the -ports parameter is used instead:
$ httpx -u https://www.example.com -probe-all-ips -silent -ports 80
http://www.example.com [2606:4700::6812:1b78]
http://www.example.com [2606:4700::6812:1a78]
http://www.example.com [104.18.27.120]
http://www.example.com [104.18.26.120]
$ httpx -u https://www.example.com -probe-all-ips -silent -ports 443
https://www.example.com [104.18.26.120]
https://www.example.com [104.18.27.120]
https://www.example.com [2606:4700::6812:1a78]
https://www.example.com [2606:4700::6812:1b78]
Activity
coderabbitai commentedon Dec 28, 2025
📝 CodeRabbit Plan Mode
Generate an implementation plan and prompts that you can use with your favorite coding agent.
Examples
🔗 Similar Issues
Related Issues
👤 Suggested Assignees
🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord!