diff --git a/Netch/Controllers/NFController.cs b/Netch/Controllers/NFController.cs index 7857a9c9..8ec8d5f4 100644 --- a/Netch/Controllers/NFController.cs +++ b/Netch/Controllers/NFController.cs @@ -7,8 +7,8 @@ using System.ServiceProcess; using Netch.Interfaces; using Netch.Interops; using Netch.Models; +using Netch.Servers; using Netch.Servers.Shadowsocks; -using Netch.Servers.Socks5; using Netch.Utils; using Serilog; using static Netch.Interops.Redirector; diff --git a/Netch/Controllers/PcapController.cs b/Netch/Controllers/PcapController.cs index 01b77090..6165b3ef 100644 --- a/Netch/Controllers/PcapController.cs +++ b/Netch/Controllers/PcapController.cs @@ -8,7 +8,7 @@ using System.Threading.Tasks; using Netch.Forms; using Netch.Interfaces; using Netch.Models; -using Netch.Servers.Socks5; +using Netch.Servers; using Netch.Utils; namespace Netch.Controllers diff --git a/Netch/Controllers/TUNController.cs b/Netch/Controllers/TUNController.cs index 2c7d2f82..70497ec3 100644 --- a/Netch/Controllers/TUNController.cs +++ b/Netch/Controllers/TUNController.cs @@ -8,7 +8,7 @@ using Netch.Enums; using Netch.Interfaces; using Netch.Interops; using Netch.Models; -using Netch.Servers.Socks5; +using Netch.Servers; using Netch.Utils; using Serilog; using static Netch.Interops.tun2socks; diff --git a/Netch/Forms/MainForm.cs b/Netch/Forms/MainForm.cs index f3e9c83b..cb6ddef2 100644 --- a/Netch/Forms/MainForm.cs +++ b/Netch/Forms/MainForm.cs @@ -11,7 +11,7 @@ using System.Windows.Forms; using Microsoft.Win32; using Netch.Controllers; using Netch.Enums; -using Netch.Forms.Mode; +using Netch.Forms.ModeForms; using Netch.Interfaces; using Netch.Models; using Netch.Properties; @@ -246,14 +246,14 @@ namespace Netch.Forms private void CreateProcessModeToolStripButton_Click(object sender, EventArgs e) { Hide(); - new Process().ShowDialog(); + new ProcessForm().ShowDialog(); Show(); } private void createRouteTableModeToolStripMenuItem_Click(object sender, EventArgs e) { Hide(); - new Route().ShowDialog(); + new RouteForm().ShowDialog(); Show(); } @@ -479,7 +479,7 @@ namespace Netch.Forms return; } - if (ModeComboBox.SelectedItem is not Models.Mode mode) + if (ModeComboBox.SelectedItem is not Mode mode) { MessageBoxX.Show(i18N.Translate("Please select a mode first")); return; @@ -707,7 +707,7 @@ namespace Netch.Forms { try { - Global.Settings.ModeComboBoxSelectedIndex = Global.Modes.IndexOf((Models.Mode)ModeComboBox.SelectedItem); + Global.Settings.ModeComboBoxSelectedIndex = Global.Modes.IndexOf((Mode)ModeComboBox.SelectedItem); } catch { @@ -724,7 +724,7 @@ namespace Netch.Forms return; } - var mode = (Models.Mode)ModeComboBox.SelectedItem; + var mode = (Mode)ModeComboBox.SelectedItem; if (ModifierKeys == Keys.Control) { Utils.Utils.Open(ModeHelper.GetFullPath(mode.RelativePath!)); @@ -735,13 +735,13 @@ namespace Netch.Forms { case ModeType.Process: Hide(); - new Process(mode).ShowDialog(); + new ProcessForm(mode).ShowDialog(); Show(); break; case ModeType.ProxyRuleIPs: case ModeType.BypassRuleIPs: Hide(); - new Route(mode).ShowDialog(); + new RouteForm(mode).ShowDialog(); Show(); break; default: @@ -759,7 +759,7 @@ namespace Netch.Forms return; } - ModeHelper.Delete((Models.Mode)ModeComboBox.SelectedItem); + ModeHelper.Delete((Mode)ModeComboBox.SelectedItem); SelectLastMode(); } @@ -837,7 +837,7 @@ namespace Netch.Forms ProfileNameText.Text = profile.ProfileName; var server = ServerComboBox.Items.Cast().FirstOrDefault(s => s.Remark.Equals(profile.ServerRemark)); - var mode = ModeComboBox.Items.Cast().FirstOrDefault(m => m.Remark.Equals(profile.ModeRemark)); + var mode = ModeComboBox.Items.Cast().FirstOrDefault(m => m.Remark.Equals(profile.ModeRemark)); if (server == null) throw new Exception("Server not found."); @@ -852,7 +852,7 @@ namespace Netch.Forms private Profile CreateProfileAtIndex(int index) { var server = (Server)ServerComboBox.SelectedItem; - var mode = (Models.Mode)ModeComboBox.SelectedItem; + var mode = (Mode)ModeComboBox.SelectedItem; var name = ProfileNameText.Text; Profile? profile; @@ -1418,7 +1418,7 @@ namespace Netch.Forms break; } - case Models.Mode item: + case Mode item: { // 绘制 模式Box 底色 e.Graphics.FillRectangle(Brushes.Gray, _numberBoxX, e.Bounds.Y, _numberBoxWidth, e.Bounds.Height); diff --git a/Netch/Forms/Mode/ModeEditorUtils.cs b/Netch/Forms/ModeForms/ModeEditorUtils.cs similarity index 95% rename from Netch/Forms/Mode/ModeEditorUtils.cs rename to Netch/Forms/ModeForms/ModeEditorUtils.cs index b2b950db..7257a490 100644 --- a/Netch/Forms/Mode/ModeEditorUtils.cs +++ b/Netch/Forms/ModeForms/ModeEditorUtils.cs @@ -1,7 +1,7 @@ using System.IO; using System.Text; -namespace Netch.Forms.Mode +namespace Netch.Forms.ModeForms { public static class ModeEditorUtils { diff --git a/Netch/Forms/Mode/Process.Designer.cs b/Netch/Forms/ModeForms/ProcessForm.Designer.cs similarity index 99% rename from Netch/Forms/Mode/Process.Designer.cs rename to Netch/Forms/ModeForms/ProcessForm.Designer.cs index dd4a78f4..59db56dc 100644 --- a/Netch/Forms/Mode/Process.Designer.cs +++ b/Netch/Forms/ModeForms/ProcessForm.Designer.cs @@ -1,9 +1,9 @@ using System; using System.Windows.Forms; -namespace Netch.Forms.Mode +namespace Netch.Forms.ModeForms { - partial class Process + partial class ProcessForm { /// /// Required designer variable. @@ -180,7 +180,7 @@ namespace Netch.Forms.Mode this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); this.MaximizeBox = false; - this.Name = "Process"; + this.Name = "ProcessForm"; this.Padding = new System.Windows.Forms.Padding(12, 5, 12, 5); this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Create Process Mode"; diff --git a/Netch/Forms/Mode/Process.cs b/Netch/Forms/ModeForms/ProcessForm.cs similarity index 96% rename from Netch/Forms/Mode/Process.cs rename to Netch/Forms/ModeForms/ProcessForm.cs index 9e4b5302..cffbe6a9 100644 --- a/Netch/Forms/Mode/Process.cs +++ b/Netch/Forms/ModeForms/ProcessForm.cs @@ -10,20 +10,20 @@ using System.Linq; using System.Windows.Forms; using Netch.Enums; -namespace Netch.Forms.Mode +namespace Netch.Forms.ModeForms { - public partial class Process : Form + public partial class ProcessForm : Form { /// /// 被编辑的模式 /// - private readonly Models.Mode? _mode; + private readonly Mode? _mode; /// /// 编辑模式 /// /// 模式 - public Process(Models.Mode? mode = null) + public ProcessForm(Mode? mode = null) { if (mode != null && mode.Type is not ModeType.Process) throw new ArgumentOutOfRangeException(); @@ -133,7 +133,7 @@ namespace Netch.Forms.Mode return; } - var mode = new Models.Mode(fullName) + var mode = new Mode(fullName) { Type = ModeType.Process, Remark = RemarkTextBox.Text diff --git a/Netch/Forms/Mode/Process.resx b/Netch/Forms/ModeForms/ProcessForm.resx similarity index 100% rename from Netch/Forms/Mode/Process.resx rename to Netch/Forms/ModeForms/ProcessForm.resx diff --git a/Netch/Forms/Mode/Route.Designer.cs b/Netch/Forms/ModeForms/RouteForm.Designer.cs similarity index 98% rename from Netch/Forms/Mode/Route.Designer.cs rename to Netch/Forms/ModeForms/RouteForm.Designer.cs index 9d3b9466..99530b7f 100644 --- a/Netch/Forms/Mode/Route.Designer.cs +++ b/Netch/Forms/ModeForms/RouteForm.Designer.cs @@ -1,9 +1,9 @@ using System.ComponentModel; using Netch.Properties; -namespace Netch.Forms.Mode +namespace Netch.Forms.ModeForms { - partial class Route + partial class RouteForm { /// /// Required designer variable. @@ -166,7 +166,7 @@ namespace Netch.Forms.Mode this.ClientSize = new System.Drawing.Size(356, 419); this.Controls.Add(this.ConfigurationGroupBox); this.Controls.Add(this.ControlButton); - this.Name = "Route"; + this.Name = "RouteForm"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Create Route Table Rule"; this.Load += new System.EventHandler(this.Route_Load); diff --git a/Netch/Forms/Mode/Route.cs b/Netch/Forms/ModeForms/RouteForm.cs similarity index 93% rename from Netch/Forms/Mode/Route.cs rename to Netch/Forms/ModeForms/RouteForm.cs index 8eecd5da..6134d490 100644 --- a/Netch/Forms/Mode/Route.cs +++ b/Netch/Forms/ModeForms/RouteForm.cs @@ -6,16 +6,16 @@ using System.IO; using System.Windows.Forms; using Netch.Enums; -namespace Netch.Forms.Mode +namespace Netch.Forms.ModeForms { - public partial class Route : Form + public partial class RouteForm : Form { private readonly TagItem[] _items = { new(ModeType.ProxyRuleIPs, "Proxy Rule IPs"), new(ModeType.BypassRuleIPs, "Bypass Rule IPs") }; - private readonly Models.Mode? _mode; + private readonly Mode? _mode; - public Route(Models.Mode? mode = null) + public RouteForm(Mode? mode = null) { if (mode != null && mode.Type is not (ModeType.ProxyRuleIPs or ModeType.BypassRuleIPs)) throw new ArgumentOutOfRangeException(); @@ -79,7 +79,7 @@ namespace Netch.Forms.Mode return; } - var mode = new Models.Mode(fullName) + var mode = new Mode(fullName) { Type = (ModeType)comboBox1.SelectedValue, Remark = RemarkTextBox.Text diff --git a/Netch/Forms/Mode/Route.resx b/Netch/Forms/ModeForms/RouteForm.resx similarity index 100% rename from Netch/Forms/Mode/Route.resx rename to Netch/Forms/ModeForms/RouteForm.resx diff --git a/Netch/Interfaces/IServerController.cs b/Netch/Interfaces/IServerController.cs index cc897b2a..48676a5b 100644 --- a/Netch/Interfaces/IServerController.cs +++ b/Netch/Interfaces/IServerController.cs @@ -1,5 +1,5 @@ using Netch.Models; -using Netch.Servers.Socks5; +using Netch.Servers; namespace Netch.Interfaces { diff --git a/Netch/Netch.csproj b/Netch/Netch.csproj index 37204d9a..4cdd8df6 100644 --- a/Netch/Netch.csproj +++ b/Netch/Netch.csproj @@ -72,7 +72,7 @@ True Settings.settings - + diff --git a/Netch/Servers/Shadowsocks/SSController.cs b/Netch/Servers/Shadowsocks/SSController.cs index b979bf20..c6e09d98 100644 --- a/Netch/Servers/Shadowsocks/SSController.cs +++ b/Netch/Servers/Shadowsocks/SSController.cs @@ -21,7 +21,7 @@ namespace Netch.Servers.Shadowsocks public string? LocalAddress { get; set; } - public Socks5.Socks5 Start(in Server s) + public Socks5 Start(in Server s) { var server = (Shadowsocks)s; @@ -39,7 +39,7 @@ namespace Netch.Servers.Shadowsocks }; StartGuard(command.ToString()); - return new Socks5.Socks5(this.LocalAddress(), this.Socks5LocalPort()); + return new Socks5(this.LocalAddress(), this.Socks5LocalPort()); } [Verb] diff --git a/Netch/Servers/ShadowsocksR/SSRController.cs b/Netch/Servers/ShadowsocksR/SSRController.cs index a49aeb49..934e4ba9 100644 --- a/Netch/Servers/ShadowsocksR/SSRController.cs +++ b/Netch/Servers/ShadowsocksR/SSRController.cs @@ -21,7 +21,7 @@ namespace Netch.Servers.ShadowsocksR public string? LocalAddress { get; set; } - public Socks5.Socks5 Start(in Server s) + public Socks5 Start(in Server s) { var server = (ShadowsocksR)s; @@ -42,7 +42,7 @@ namespace Netch.Servers.ShadowsocksR }; StartGuard(command.ToString()); - return new Socks5.Socks5(this.LocalAddress(), this.Socks5LocalPort()); + return new Socks5(this.LocalAddress(), this.Socks5LocalPort()); } [Verb] diff --git a/Netch/Servers/Socks5/Form/Socks5Form.cs b/Netch/Servers/Socks5/Form/Socks5Form.cs index e96e456a..fc5ac6b6 100644 --- a/Netch/Servers/Socks5/Form/Socks5Form.cs +++ b/Netch/Servers/Socks5/Form/Socks5Form.cs @@ -1,6 +1,6 @@ using Netch.Forms; -namespace Netch.Servers.Socks5.Form +namespace Netch.Servers { public class Socks5Form : ServerForm { diff --git a/Netch/Servers/Socks5/S5Controller.cs b/Netch/Servers/Socks5/S5Controller.cs index f1eb7ad9..da82891e 100644 --- a/Netch/Servers/Socks5/S5Controller.cs +++ b/Netch/Servers/Socks5/S5Controller.cs @@ -1,7 +1,7 @@ using Netch.Models; -using Netch.Servers.V2ray; +using Netch.Servers; -namespace Netch.Servers.Socks5 +namespace Netch.Servers { public class S5Controller : V2rayController { diff --git a/Netch/Servers/Socks5/S5Util.cs b/Netch/Servers/Socks5/S5Util.cs index a518f8f5..c3668d44 100644 --- a/Netch/Servers/Socks5/S5Util.cs +++ b/Netch/Servers/Socks5/S5Util.cs @@ -3,9 +3,8 @@ using System.Collections.Generic; using System.Linq; using Netch.Interfaces; using Netch.Models; -using Netch.Servers.Socks5.Form; -namespace Netch.Servers.Socks5 +namespace Netch.Servers { public class S5Util : IServerUtil { diff --git a/Netch/Servers/Socks5/Socks5.cs b/Netch/Servers/Socks5/Socks5.cs index a1894a51..0fa97fb2 100644 --- a/Netch/Servers/Socks5/Socks5.cs +++ b/Netch/Servers/Socks5/Socks5.cs @@ -1,6 +1,6 @@ using Netch.Models; -namespace Netch.Servers.Socks5 +namespace Netch.Servers { public class Socks5 : Server { diff --git a/Netch/Servers/Trojan/Form/TrojanForm.cs b/Netch/Servers/Trojan/Form/TrojanForm.cs index 4e1050f3..c5a1a7b8 100644 --- a/Netch/Servers/Trojan/Form/TrojanForm.cs +++ b/Netch/Servers/Trojan/Form/TrojanForm.cs @@ -1,6 +1,6 @@ using Netch.Forms; -namespace Netch.Servers.Trojan.Form +namespace Netch.Servers.Form { public class TrojanForm : ServerForm { diff --git a/Netch/Servers/Trojan/Models/TrojanConfig.cs b/Netch/Servers/Trojan/Models/TrojanConfig.cs index ed897f38..13e7a377 100644 --- a/Netch/Servers/Trojan/Models/TrojanConfig.cs +++ b/Netch/Servers/Trojan/Models/TrojanConfig.cs @@ -1,7 +1,7 @@ #nullable disable using System.Collections.Generic; -namespace Netch.Servers.Trojan.Models +namespace Netch.Servers.Models { public class TrojanConfig { diff --git a/Netch/Servers/Trojan/Trojan.cs b/Netch/Servers/Trojan/Trojan.cs index 0cb6556b..dcc7bded 100644 --- a/Netch/Servers/Trojan/Trojan.cs +++ b/Netch/Servers/Trojan/Trojan.cs @@ -1,6 +1,6 @@ using Netch.Models; -namespace Netch.Servers.Trojan +namespace Netch.Servers { public class Trojan : Server { diff --git a/Netch/Servers/Trojan/TrojanController.cs b/Netch/Servers/Trojan/TrojanController.cs index 09479fe2..57eea44f 100644 --- a/Netch/Servers/Trojan/TrojanController.cs +++ b/Netch/Servers/Trojan/TrojanController.cs @@ -4,9 +4,9 @@ using System.Text.Json; using Netch.Controllers; using Netch.Interfaces; using Netch.Models; -using Netch.Servers.Trojan.Models; +using Netch.Servers.Models; -namespace Netch.Servers.Trojan +namespace Netch.Servers { public class TrojanController : Guard, IServerController { @@ -24,7 +24,7 @@ namespace Netch.Servers.Trojan public string? LocalAddress { get; set; } - public Socks5.Socks5 Start(in Server s) + public Socks5 Start(in Server s) { var server = (Trojan)s; var trojanConfig = new TrojanConfig @@ -48,7 +48,7 @@ namespace Netch.Servers.Trojan File.WriteAllBytes(Constants.TempConfig, JsonSerializer.SerializeToUtf8Bytes(trojanConfig, Global.NewDefaultJsonSerializerOptions)); StartGuard("-c ..\\data\\last.json"); - return new Socks5.Socks5(this.LocalAddress(), this.Socks5LocalPort()); + return new Socks5(this.LocalAddress(), this.Socks5LocalPort()); } } } \ No newline at end of file diff --git a/Netch/Servers/Trojan/TrojanUtil.cs b/Netch/Servers/Trojan/TrojanUtil.cs index 9b075fa0..5c69a894 100644 --- a/Netch/Servers/Trojan/TrojanUtil.cs +++ b/Netch/Servers/Trojan/TrojanUtil.cs @@ -4,9 +4,9 @@ using System.Text.RegularExpressions; using System.Web; using Netch.Interfaces; using Netch.Models; -using Netch.Servers.Trojan.Form; +using Netch.Servers.Form; -namespace Netch.Servers.Trojan +namespace Netch.Servers { public class TrojanUtil : IServerUtil { diff --git a/Netch/Servers/V2ray/Models/V2rayConfig.cs b/Netch/Servers/V2ray/Models/V2rayConfig.cs index 52e5f613..09659933 100644 --- a/Netch/Servers/V2ray/Models/V2rayConfig.cs +++ b/Netch/Servers/V2ray/Models/V2rayConfig.cs @@ -1,7 +1,7 @@ #nullable disable using System.Collections.Generic; -namespace Netch.Servers.V2ray.Models +namespace Netch.Servers.Models { public class V2rayConfig { diff --git a/Netch/Servers/V2ray/Models/V2rayNSharing.cs b/Netch/Servers/V2ray/Models/V2rayNSharing.cs index 94f50b26..8a162e4f 100644 --- a/Netch/Servers/V2ray/Models/V2rayNSharing.cs +++ b/Netch/Servers/V2ray/Models/V2rayNSharing.cs @@ -1,4 +1,4 @@ -namespace Netch.Servers.V2ray.Models +namespace Netch.Servers.Models { /// /// 使用 v2rayN 定义的 VMess 链接格式 diff --git a/Netch/Servers/V2ray/Utils/V2rayConfigUtils.cs b/Netch/Servers/V2ray/Utils/V2rayConfigUtils.cs index 18fdc7cf..5ec34dfc 100644 --- a/Netch/Servers/V2ray/Utils/V2rayConfigUtils.cs +++ b/Netch/Servers/V2ray/Utils/V2rayConfigUtils.cs @@ -2,10 +2,10 @@ using System.Linq; using System.Text.Json; using Netch.Models; -using Netch.Servers.V2ray.Models; -using V2rayConfig = Netch.Servers.V2ray.Models.V2rayConfig; +using Netch.Servers.Models; +using V2rayConfig = Netch.Servers.Models.V2rayConfig; -namespace Netch.Servers.V2ray.Utils +namespace Netch.Servers.Utils { public static class V2rayConfigUtils { @@ -105,7 +105,7 @@ namespace Netch.Servers.V2ray.Utils switch (server) { - case Socks5.Socks5 socks5: + case Socks5 socks5: { outbound.settings.servers = new List { @@ -132,7 +132,7 @@ namespace Netch.Servers.V2ray.Utils outbound.protocol = "socks"; break; } - case VLESS.VLESS vless: + case VLESS vless: { var vnextItem = new VnextItem { diff --git a/Netch/Servers/V2ray/V2rayController.cs b/Netch/Servers/V2ray/V2rayController.cs index db04289d..c18d1ea5 100644 --- a/Netch/Servers/V2ray/V2rayController.cs +++ b/Netch/Servers/V2ray/V2rayController.cs @@ -3,9 +3,9 @@ using System.IO; using Netch.Controllers; using Netch.Interfaces; using Netch.Models; -using Netch.Servers.V2ray.Utils; +using Netch.Servers.Utils; -namespace Netch.Servers.V2ray +namespace Netch.Servers { public class V2rayController : Guard, IServerController { @@ -25,11 +25,11 @@ namespace Netch.Servers.V2ray public string? LocalAddress { get; set; } - public virtual Socks5.Socks5 Start(in Server s) + public virtual Socks5 Start(in Server s) { File.WriteAllText(Constants.TempConfig, V2rayConfigUtils.GenerateClientConfig(s)); StartGuard("-config ..\\data\\last.json"); - return new Socks5.Socks5(this.LocalAddress(), this.Socks5LocalPort()); + return new Socks5(this.LocalAddress(), this.Socks5LocalPort()); } } } \ No newline at end of file diff --git a/Netch/Servers/V2ray/V2rayUtils.cs b/Netch/Servers/V2ray/V2rayUtils.cs index 7f47e24b..4f2962b6 100644 --- a/Netch/Servers/V2ray/V2rayUtils.cs +++ b/Netch/Servers/V2ray/V2rayUtils.cs @@ -6,14 +6,14 @@ using System.Linq; using System.Text.RegularExpressions; using System.Web; -namespace Netch.Servers.V2ray +namespace Netch.Servers { public static class V2rayUtils { public static IEnumerable ParseVUri(string text) { var scheme = ShareLink.GetUriScheme(text).ToLower(); - var server = scheme switch { "vmess" => new VMess.VMess(), "vless" => new VLESS.VLESS(), _ => throw new ArgumentOutOfRangeException() }; + var server = scheme switch { "vmess" => new VMess.VMess(), "vless" => new VLESS(), _ => throw new ArgumentOutOfRangeException() }; if (text.Contains("#")) { server.Remark = Uri.UnescapeDataString(text.Split('#')[1]); @@ -54,7 +54,7 @@ namespace Netch.Servers.V2ray { server.Host = parameter.Get("sni") ?? ""; if (server.TLSSecureType == "xtls") - ((VLESS.VLESS)server).Flow = parameter.Get("flow") ?? ""; + ((VLESS)server).Flow = parameter.Get("flow") ?? ""; } } @@ -127,7 +127,7 @@ namespace Netch.Servers.V2ray if (server.TLSSecureType == "xtls") { - var flow = ((VLESS.VLESS)server).Flow; + var flow = ((VLESS)server).Flow; if (!flow.IsNullOrWhiteSpace()) parameter.Add("flow", flow!.Replace("-udp443", "")); } diff --git a/Netch/Servers/VLESS/VLESS.cs b/Netch/Servers/VLESS/VLESS.cs index 59178b1e..5464e826 100644 --- a/Netch/Servers/VLESS/VLESS.cs +++ b/Netch/Servers/VLESS/VLESS.cs @@ -1,7 +1,7 @@ using Netch.Servers.VMess; using System.Collections.Generic; -namespace Netch.Servers.VLESS +namespace Netch.Servers { public class VLESS : VMess.VMess { diff --git a/Netch/Servers/VLESS/VLESSForm/VLESSForm.cs b/Netch/Servers/VLESS/VLESSForm/VLESSForm.cs index c04f835d..f2f05d38 100644 --- a/Netch/Servers/VLESS/VLESSForm/VLESSForm.cs +++ b/Netch/Servers/VLESS/VLESSForm/VLESSForm.cs @@ -1,7 +1,7 @@ using Netch.Forms; using System.Collections.Generic; -namespace Netch.Servers.VLESS.VLESSForm +namespace Netch.Servers.VLESSForm { internal class VLESSForm : ServerForm { diff --git a/Netch/Servers/VLESS/VLESSUtil.cs b/Netch/Servers/VLESS/VLESSUtil.cs index a24ddc3a..4c559d82 100644 --- a/Netch/Servers/VLESS/VLESSUtil.cs +++ b/Netch/Servers/VLESS/VLESSUtil.cs @@ -2,9 +2,9 @@ using System; using System.Collections.Generic; using Netch.Interfaces; using Netch.Models; -using Netch.Servers.V2ray; +using Netch.Servers; -namespace Netch.Servers.VLESS +namespace Netch.Servers { public class VLESSUtil : IServerUtil { diff --git a/Netch/Servers/VMess/VMessUtil.cs b/Netch/Servers/VMess/VMessUtil.cs index cb4559b0..2985f18c 100644 --- a/Netch/Servers/VMess/VMessUtil.cs +++ b/Netch/Servers/VMess/VMessUtil.cs @@ -5,8 +5,8 @@ using System.Text.Json; using System.Text.Json.Serialization; using Netch.Interfaces; using Netch.Models; -using Netch.Servers.V2ray; -using Netch.Servers.V2ray.Models; +using Netch.Servers; +using Netch.Servers.Models; using Netch.Servers.VMess.Form; using Netch.Utils; diff --git a/Netch/Utils/ModeHelper.cs b/Netch/Utils/ModeHelper.cs index 36b250f1..3faeff46 100644 --- a/Netch/Utils/ModeHelper.cs +++ b/Netch/Utils/ModeHelper.cs @@ -4,11 +4,10 @@ using System.Linq; using System.Reactive.Linq; using Netch.Controllers; using Netch.Enums; -using Netch.Forms; using Netch.Interfaces; using Netch.Models; +using Netch.Servers; using Netch.Servers.Shadowsocks; -using Netch.Servers.Socks5; using Serilog; namespace Netch.Utils