Force Proxy to any Windows/MacOS/Linux Application TCP and UDP traffic
C ccybersecurityhttp3httpproxylinuxlinux-proxymacosmacos-appmacos-proxyproxifierproxifier-alternativeproxyclienttcpthick-clientudpwindivertwindows
added exe checker in windows update
Sourav Kalal236e4660ee24
diff --git a/Windows/cli/Program.cs b/Windows/cli/Program.csindex 20a4073..5dd8553 100644--- a/Windows/cli/Program.cs+++ b/Windows/cli/Program.cs@@ -494,12 +494,8 @@ class Programreturn;}- Console.ForegroundColor = ConsoleColor.Yellow;- Console.WriteLine($"⚠ New version available: {releaseName}");- Console.ResetColor();- Console.WriteLine();--+ // Check if Windows installer exists before showing update available+ // (handles cross-platform releases where v4.0 might be released for Linux only)var assets = root.GetProperty("assets").EnumerateArray();string? setupUrl = null;string? setupName = null;@@ -519,13 +515,21 @@ class Programif (string.IsNullOrEmpty(setupUrl)){- Console.ForegroundColor = ConsoleColor.Red;- Console.WriteLine("ERROR: Setup installer not found in latest release.");+ Console.ForegroundColor = ConsoleColor.Yellow;+ Console.WriteLine($"ℹ Version {latestVersionStr} exists but Windows installer not yet available.");+ Console.WriteLine($" (Release might be for other platforms only)");Console.ResetColor();+ Console.WriteLine();+ Console.WriteLine("You are using the latest version available for Windows.");Console.WriteLine($"Visit: https://github.com/{repoOwner}/{repoName}/releases/latest");return;}+ Console.ForegroundColor = ConsoleColor.Yellow;+ Console.WriteLine($"⚠ New version available: {releaseName}");+ Console.ResetColor();+ Console.WriteLine();+Console.WriteLine($"Downloading: {setupName}");Console.WriteLine($"From: {setupUrl}");Console.WriteLine();diff --git a/Windows/gui/Services/UpdateService.cs b/Windows/gui/Services/UpdateService.csindex 19b7091..3699ae3 100644--- a/Windows/gui/Services/UpdateService.cs+++ b/Windows/gui/Services/UpdateService.cs@@ -45,11 +45,17 @@ public class UpdateServicea.Name.Contains("installer", StringComparison.OrdinalIgnoreCase) ||a.Name.Contains("ProxyBridge", StringComparison.OrdinalIgnoreCase)));+ // Only mark update as available if:+ // 1. Version is newer AND+ // 2. Windows installer (.exe) exists in release (platform-specific check)+ var hasWindowsInstaller = setupAsset != null && !string.IsNullOrEmpty(setupAsset.BrowserDownloadUrl);+ var isNewerVersion = IsNewerVersion(latestVersion, currentVersion);+return new VersionInfo{CurrentVersion = currentVersion,LatestVersion = latestVersion,- IsUpdateAvailable = IsNewerVersion(latestVersion, currentVersion),+ IsUpdateAvailable = isNewerVersion && hasWindowsInstaller,LatestVersionString = release?.TagName ?? "Unknown",CurrentVersionString = FormatVersion(currentVersion),DownloadUrl = setupAsset?.BrowserDownloadUrl,