mirror of
https://github.com/2dust/v2rayN.git
synced 2026-11-05 12:04:59 +03:00
Add process to routing domains
https://github.com/2dust/v2rayN/issues/8757
This commit is contained in:
@@ -1086,7 +1086,19 @@ public class Utils
|
||||
|
||||
public static string GetExeName(string name)
|
||||
{
|
||||
return IsWindows() ? $"{name}.exe" : name;
|
||||
if (name.IsNullOrEmpty() || IsNonWindows())
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
if (name.EndsWith(".exe", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return name;
|
||||
}
|
||||
else
|
||||
{
|
||||
return $"{name}.exe";
|
||||
}
|
||||
}
|
||||
|
||||
public static bool IsAdministrator()
|
||||
|
||||
Reference in New Issue
Block a user