Enhancement #906/Smart Host Parsing for Target Address #1039

Closed
opened 2026-04-05 18:09:04 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @Pallavikumarimdb on 8/22/2025

Community Contribution License Agreement

By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.

Description

This PR introduces smart host parsing for the Target Address field (issues highlighted in #906 ).
Sub-issues addressed: 2.1 Smart Parsing for Host Targets

Solution:
Users can now paste a full URL (e.g., http://192.168.1.2:81) directly into the IP/Hostname input, and the system will automatically extract and populate method, host, and port fields. Users still have the flexibility to manually edit each field if required.

  • Added a parseHostTarget utility to extract protocol, host, and port from a pasted/typed URL or raw IP input.
  • Auto-assign default ports when user input does not include one:
    • http:// → port 80
    • https:// → port 443
  • Preserves user-provided ports if specified.
  • Works for both domain names and IP addresses.

How to test?

*Originally created by @Pallavikumarimdb on 8/22/2025* ## Community Contribution License Agreement By creating this pull request, I grant the project maintainers an unlimited, perpetual license to use, modify, and redistribute these contributions under any terms they choose, including both the AGPLv3 and the Fossorial Commercial license terms. I represent that I have the right to grant this license for all contributed content. ## Description This PR introduces smart host parsing for the Target Address field (issues highlighted in #906 ). **Sub-issues addressed: 2.1 Smart Parsing for Host Targets** **Solution:** Users can now paste a full URL (e.g., http://192.168.1.2:81) directly into the IP/Hostname input, and the system will automatically extract and populate method, host, and port fields. Users still have the flexibility to manually edit each field if required. * Added a parseHostTarget utility to extract protocol, host, and port from a pasted/typed URL or raw IP input. * Auto-assign default ports when user input does not include one: - http:// → port 80 - https:// → port 443 * Preserves user-provided ports if specified. * Works for both domain names and IP addresses. ## How to test?
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#1039