Repository navigation
Feature: Convert a pasted URL to its host in host inputs - #3759
Merged
Merged
Conversation
A URL pasted or dropped into a host input (tools, connect dialogs, profiles, groups, hosts file entries, latency targets) becomes its host, e.g. https://borntoberoot.net/docs -> borntoberoot.net. - InputConverter (Utilities): multiline to ";" and URL to host helpers - PasteBehavior replaces ComboBoxPasteBehavior: DataObject.Pasting, ComboBox and TextBox (undo, drag & drop, read-only kept) - Run command: commands that take a host convert a URL target (RunCommandDefinition.TargetIsHost); a URL also suggests the host tools - Whois: a subdomain is queried as its registered domain (Public Suffix List, like RDAP) - Docs and changelog Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
This pull request is merged. |
- A ";" in the path or query of a URL belongs to the URL (e.g. ";jsessionid=1"), unless a new URL follows; line breaks end a URL - Paste: an unreadable clipboard falls back to the default paste - Run command: a URL suggests the Web Console and the tools of the kind of its host (no public-host tools for a host without a domain) - Whois.GetQueryDomain with tests, server list loaded on first use - Changelog: link #3759 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A part after a URL with a path that can be a host entry (10.0.0.1, server-01, 10.0.0.0/24, !10.0.0.1) is an entry of its own; only e.g. ";jsessionid=1" belongs to the URL - Shared UrlConversion (None / Host / RDAPQuery) for the paste behavior (PasteBehavior.ConvertUrls) and the run command (RunCommandDefinition.TargetUrlConversion) - RDAP: a pasted RDAP link becomes its query (e.g. .../ip/1.1.1.1) - InputConverter: why it is in Utilities Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- What follows a URL with a path belongs to it until the next URL: a
link is pasted as one entry (e.g. from a browser)
- RDAP: only links of an RDAP service ("rdap" in host or path) become
their query, other links their host
- Whois: an IP address (e.g. inherited profile host) is kept
- Profile dialog: multiline paste for the IP Scanner, Port Scanner and
Ping Monitor host
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The request was to get the host of a pasted link; RDAP API links are not that use case. RDAP converts a URL to its host like every other input, which also removes the substring check of the review. - Removed UrlConversion and InputConverter.TryGetRDAPQueryFromUrl - PasteBehavior.ConvertUrlsToHosts (bool), RunCommandDefinition.TargetIsHost - Docs / changelog without the RDAP link examples Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A host taken from a URL loses the trailing dot of a fully qualified name - Whois: only complete IPv4 / IPv6 addresses are kept as they are (IPAddress.TryParse also accepts "1.2" or "10") - AGENTS.md: helpers used by NETworkManager.Controls go to Utilities Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A URL pasted or dropped into a host input (tools, connect dialogs, profiles, groups, hosts file entries, latency targets) becomes its host, e.g. https://borntoberoot.net/docs -> borntoberoot.net.
Description
Related issue
#3609
Type of change