From 74c18d81954fc39855d5edf0942506f938550ed4 Mon Sep 17 00:00:00 2001 From: VictoriousRaptor <10308169+VictoriousRaptor@users.noreply.github.com> Date: Sun, 1 Mar 2026 14:20:28 +0800 Subject: [PATCH] Use IPEndPoint to avoid potential URL with IP ports --- Plugins/Flow.Launcher.Plugin.Url/Main.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.Url/Main.cs b/Plugins/Flow.Launcher.Plugin.Url/Main.cs index 02b649742..c5036baa6 100644 --- a/Plugins/Flow.Launcher.Plugin.Url/Main.cs +++ b/Plugins/Flow.Launcher.Plugin.Url/Main.cs @@ -116,8 +116,8 @@ namespace Flow.Launcher.Plugin.Url return true; // Valid IP address (excluding 0.0.0.0) - if (IPAddress.TryParse(host, out var hostIp)) - return !hostIp.Equals(IPAddress.Any) && !hostIp.Equals(IPAddress.IPv6Any); + if (IPEndPoint.TryParse(host, out endpoint)) + return !endpoint.Address.Equals(IPAddress.Any) && !endpoint.Address.Equals(IPAddress.IPv6Any); // Domain must have valid format with TLD var parts = host.Split('.');