mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Don't apply brackets for already closed
This commit is contained in:
parent
09d310e227
commit
f6ca3c850b
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ namespace Flow.Launcher.Plugin.Url
|
|||
|
||||
if (IPEndPoint.TryParse(raw, out var endpoint))
|
||||
{
|
||||
if (endpoint.AddressFamily == System.Net.Sockets.AddressFamily.InterNetworkV6)
|
||||
if (endpoint.AddressFamily == System.Net.Sockets.AddressFamily.InterNetworkV6 && raw[0] != '[' && raw[^1] != ']')
|
||||
{
|
||||
// Enclose IPv6 addresses in brackets for URL formatting
|
||||
raw = $"[{raw}]";
|
||||
|
|
|
|||
Loading…
Reference in a new issue