fix: Inconsistent results with probe-all-ips if the port number is set in the URL#2348
Conversation
Use URL.Hostname() instead of URL.Host to extract the hostname for DNS resolution. This ensures the port number is not included in the DNS query when probing all IPs for a URL like http://example.com:8080. Fixes projectdiscovery#2346 Signed-off-by: majiayu000 <1835304752@qq.com>
WalkthroughThe changes fix the probe-all-IPs functionality when URLs include port numbers by switching DNS lookups from Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing touches
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used🧬 Code graph analysis (1)runner/runner_test.go (2)
🔇 Additional comments (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Fixes #2346
Changes
Summary by CodeRabbit
Bug Fixes
Tests
✏️ Tip: You can customize this high-level summary in your review settings.