aboutsummaryrefslogtreecommitdiff
path: root/tools/Crupest.V2ray/Crupest.V2ray/Program.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2023-09-24 17:22:18 +0800
committercrupest <crupest@outlook.com>2023-09-24 17:22:18 +0800
commitf1dc756c2b741ab2fcbaa9a3c41dfab4a93ee61b (patch)
tree3b991c71cb8d10502367034f0e956ee946efb706 /tools/Crupest.V2ray/Crupest.V2ray/Program.cs
parent22e2db425b551e2fe71ec47659ac6c190e803049 (diff)
downloadcrupest-f1dc756c2b741ab2fcbaa9a3c41dfab4a93ee61b.tar.gz
crupest-f1dc756c2b741ab2fcbaa9a3c41dfab4a93ee61b.tar.bz2
crupest-f1dc756c2b741ab2fcbaa9a3c41dfab4a93ee61b.zip
Upgrade v2ray.
Diffstat (limited to 'tools/Crupest.V2ray/Crupest.V2ray/Program.cs')
-rw-r--r--tools/Crupest.V2ray/Crupest.V2ray/Program.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/Crupest.V2ray/Crupest.V2ray/Program.cs b/tools/Crupest.V2ray/Crupest.V2ray/Program.cs
index 793f6e7..e0c0d6d 100644
--- a/tools/Crupest.V2ray/Crupest.V2ray/Program.cs
+++ b/tools/Crupest.V2ray/Crupest.V2ray/Program.cs
@@ -1,4 +1,3 @@
-using System.Diagnostics;
using System.Reflection;
namespace Crupest.V2ray;
@@ -8,6 +7,7 @@ public static class Program
public const string ConfigTemplateFileName = "config.json.template";
public const string VmessConfigFileName = "vmess.txt";
public const string ProxyConfigFileName = "proxy.txt";
+ public const string HostsConfigFileName = "hosts.txt";
public const string ConfigOutputFileName = "config.json";
public static string ExeDir { get; } = Path.GetFullPath(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) ?? throw new Exception("Can't get the path of exe."));
@@ -28,6 +28,7 @@ public static class Program
geoDataDonwloader.Download(ExeDir);
return;
}
+ throw new Exception("Invalid command line arguments.");
}
var v2rayController = new V2rayController();