mirror of
https://github.com/2dust/v2rayN.git
synced 2025-10-26 10:14:42 +00:00
26 lines
626 B
C#
26 lines
626 B
C#
namespace AmazTool
|
|
{
|
|
internal static class Program
|
|
{
|
|
[STAThread]
|
|
private static void Main(string[] args)
|
|
{
|
|
if (args.Length == 0)
|
|
{
|
|
Console.WriteLine(Resx.Resource.Guidelines);
|
|
Thread.Sleep(5000);
|
|
return;
|
|
}
|
|
|
|
var argData = Uri.UnescapeDataString(string.Join(" ", args));
|
|
if (argData.Equals("rebootas"))
|
|
{
|
|
Thread.Sleep(1000);
|
|
Utils.StartV2RayN();
|
|
return;
|
|
}
|
|
|
|
UpgradeApp.Upgrade(argData);
|
|
}
|
|
}
|
|
}
|