From 02d9633552d724d9807fce26df6c5a9a09d1dc9f Mon Sep 17 00:00:00 2001 From: Netch Date: Mon, 19 Jul 2021 05:18:23 +0800 Subject: [PATCH] Add files via upload --- Netch/Controllers/Mode/RedirectorController.cs | 2 +- Netch/Controllers/Mode/TapController.cs | 2 +- Netch/Controllers/Mode/TunController.cs | 2 +- Netch/Controllers/Other/DNS/CoreDNSController.cs | 4 ++-- Netch/Controllers/Other/DNS/DNSController.cs | 4 ++-- Netch/Controllers/Other/DNS/UnboundController.cs | 4 ++-- Netch/Controllers/Server/ShadowsocksController.cs | 4 ++-- Netch/Controllers/Server/ShadowsocksRController.cs | 4 ++-- Netch/Global.cs | 2 +- Netch/Utils/Netfilter.cs | 2 +- Netch/Utils/WinTUN.cs | 2 +- 11 files changed, 16 insertions(+), 16 deletions(-) diff --git a/Netch/Controllers/Mode/RedirectorController.cs b/Netch/Controllers/Mode/RedirectorController.cs index faf6d85d..5bc22a4f 100644 --- a/Netch/Controllers/Mode/RedirectorController.cs +++ b/Netch/Controllers/Mode/RedirectorController.cs @@ -56,7 +56,7 @@ namespace Netch.Controllers.Mode public bool Create(Models.Server.Server s, Models.Mode.Mode m) { - Global.Logger.Info(String.Format("{0:x} Redirector.bin", Utils.FileHelper.Checksum("Bin\\Redirector.bin"))); + Global.Logger.Info(String.Format("{0:x} Redirector.bin", Utils.FileHelper.Checksum("bin\\Redirector.bin"))); var mode = m as Models.Mode.ProcessMode.ProcessMode; Methods.aio_dial(NameList.TYPE_FILTERLOOPBACK, mode.Loopback ? "true" : "false"); diff --git a/Netch/Controllers/Mode/TapController.cs b/Netch/Controllers/Mode/TapController.cs index 96809b62..7ae6a4e2 100644 --- a/Netch/Controllers/Mode/TapController.cs +++ b/Netch/Controllers/Mode/TapController.cs @@ -133,7 +133,7 @@ namespace Netch.Controllers.Mode public bool Create(Models.Server.Server s, Models.Mode.Mode m) { - Global.Logger.Info(String.Format("{0:x} tap2socks.bin", Utils.FileHelper.Checksum("Bin\\tap2socks.bin"))); + Global.Logger.Info(String.Format("{0:x} tap2socks.bin", Utils.FileHelper.Checksum("bin\\tap2socks.bin"))); if (!this.Outbound.Get()) { diff --git a/Netch/Controllers/Mode/TunController.cs b/Netch/Controllers/Mode/TunController.cs index 998def59..e6096088 100644 --- a/Netch/Controllers/Mode/TunController.cs +++ b/Netch/Controllers/Mode/TunController.cs @@ -133,7 +133,7 @@ namespace Netch.Controllers.Mode public bool Create(Models.Server.Server s, Models.Mode.Mode m) { - Global.Logger.Info(String.Format("{0:x} tun2socks.bin", Utils.FileHelper.Checksum("Bin\\tun2socks.bin"))); + Global.Logger.Info(String.Format("{0:x} tun2socks.bin", Utils.FileHelper.Checksum("bin\\tun2socks.bin"))); if (!this.Outbound.Get()) { diff --git a/Netch/Controllers/Other/DNS/CoreDNSController.cs b/Netch/Controllers/Other/DNS/CoreDNSController.cs index 403e450a..fbb3e140 100644 --- a/Netch/Controllers/Other/DNS/CoreDNSController.cs +++ b/Netch/Controllers/Other/DNS/CoreDNSController.cs @@ -11,8 +11,8 @@ namespace Netch.Controllers.Other.DNS { StartInfo = new ProcessStartInfo() { - FileName = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Bin\\CoreDNS.exe"), - WorkingDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Bin"), + FileName = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "bin\\CoreDNS.exe"), + WorkingDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "bin"), CreateNoWindow = true, UseShellExecute = false, WindowStyle = ProcessWindowStyle.Hidden diff --git a/Netch/Controllers/Other/DNS/DNSController.cs b/Netch/Controllers/Other/DNS/DNSController.cs index cb52ccc9..2e8d8eeb 100644 --- a/Netch/Controllers/Other/DNS/DNSController.cs +++ b/Netch/Controllers/Other/DNS/DNSController.cs @@ -11,8 +11,8 @@ namespace Netch.Controllers.Other.DNS { StartInfo = new ProcessStartInfo() { - FileName = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Bin\\dnsproxy.exe"), - WorkingDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Bin"), + FileName = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "bin\\dnsproxy.exe"), + WorkingDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "bin"), CreateNoWindow = true, UseShellExecute = false, WindowStyle = ProcessWindowStyle.Hidden diff --git a/Netch/Controllers/Other/DNS/UnboundController.cs b/Netch/Controllers/Other/DNS/UnboundController.cs index f378b4c4..d72d79d8 100644 --- a/Netch/Controllers/Other/DNS/UnboundController.cs +++ b/Netch/Controllers/Other/DNS/UnboundController.cs @@ -11,8 +11,8 @@ namespace Netch.Controllers.Other.DNS { StartInfo = new ProcessStartInfo() { - FileName = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Bin\\Unbound.exe"), - WorkingDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Bin"), + FileName = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "bin\\Unbound.exe"), + WorkingDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "bin"), CreateNoWindow = true, UseShellExecute = false, WindowStyle = ProcessWindowStyle.Hidden diff --git a/Netch/Controllers/Server/ShadowsocksController.cs b/Netch/Controllers/Server/ShadowsocksController.cs index a5adbabc..4e0040c6 100644 --- a/Netch/Controllers/Server/ShadowsocksController.cs +++ b/Netch/Controllers/Server/ShadowsocksController.cs @@ -12,8 +12,8 @@ namespace Netch.Controllers.Server { StartInfo = new ProcessStartInfo() { - FileName = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Bin\\Shadowsocks.exe"), - WorkingDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Bin"), + FileName = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "bin\\Shadowsocks.exe"), + WorkingDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "bin"), CreateNoWindow = true, UseShellExecute = false, WindowStyle = ProcessWindowStyle.Hidden diff --git a/Netch/Controllers/Server/ShadowsocksRController.cs b/Netch/Controllers/Server/ShadowsocksRController.cs index c243a8d7..f2595a56 100644 --- a/Netch/Controllers/Server/ShadowsocksRController.cs +++ b/Netch/Controllers/Server/ShadowsocksRController.cs @@ -12,8 +12,8 @@ namespace Netch.Controllers.Server { StartInfo = new ProcessStartInfo() { - FileName = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Bin\\ShadowsocksR.exe"), - WorkingDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Bin"), + FileName = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "bin\\ShadowsocksR.exe"), + WorkingDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "bin"), CreateNoWindow = true, UseShellExecute = false, WindowStyle = ProcessWindowStyle.Hidden diff --git a/Netch/Global.cs b/Netch/Global.cs index 8ecac567..a1e6093a 100644 --- a/Netch/Global.cs +++ b/Netch/Global.cs @@ -14,7 +14,7 @@ namespace Netch /// /// 日志记录 /// - public static Tools.Logger Logger = new() { SavePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Logs\\Netch.log") }; + public static Tools.Logger Logger = new() { SavePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Netch.log") }; /// /// 配置文件 diff --git a/Netch/Utils/Netfilter.cs b/Netch/Utils/Netfilter.cs index 1ad2947c..e0ca9966 100644 --- a/Netch/Utils/Netfilter.cs +++ b/Netch/Utils/Netfilter.cs @@ -26,7 +26,7 @@ namespace Netch.Utils public static readonly string dName = "netfilter2"; public static readonly string oPath = Path.Combine(Environment.SystemDirectory, "drivers\\netfilter2.sys"); - public static readonly string nPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Bin\\netfilter2.sys"); + public static readonly string nPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "bin\\netfilter2.sys"); /// /// 注册 Netfilter 驱动 diff --git a/Netch/Utils/WinTUN.cs b/Netch/Utils/WinTUN.cs index 80f7dc50..4ab5d575 100644 --- a/Netch/Utils/WinTUN.cs +++ b/Netch/Utils/WinTUN.cs @@ -6,7 +6,7 @@ namespace Netch.Utils public static class WinTUN { public static string oPath = Path.Combine(Environment.SystemDirectory, "wintun.dll"); - public static string nPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Bin\\wintun.bin"); + public static string nPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "bin\\wintun.bin"); /// /// 注册 WinTUN 驱动