mirror of
https://github.com/netchx/netch.git
synced 2026-03-18 18:13:21 +08:00
Remove VMess.QUIC
This commit is contained in:
@@ -5,8 +5,6 @@ namespace Netch.Servers.VMess.Form
|
||||
{
|
||||
public class VMessForm : ServerForm
|
||||
{
|
||||
protected override string TypeName { get; } = "VMess";
|
||||
|
||||
public VMessForm(VMess server = default)
|
||||
{
|
||||
server ??= new VMess();
|
||||
@@ -42,8 +40,8 @@ namespace Netch.Servers.VMess.Form
|
||||
server.Path);
|
||||
CreateComboBox("QUICSecurity", "QUIC Security",
|
||||
VMessGlobal.QUIC,
|
||||
s => server.QUIC = s,
|
||||
server.QUIC);
|
||||
s => server.QUICSecure = s,
|
||||
server.QUICSecure);
|
||||
CreateTextBox("QUICSecret", "QUIC Secret",
|
||||
s => true,
|
||||
s => server.QUICSecret = s,
|
||||
@@ -63,5 +61,6 @@ namespace Netch.Servers.VMess.Form
|
||||
s => server.TLSSecureType = s,
|
||||
server.TLSSecureType);
|
||||
}
|
||||
protected override string TypeName { get; } = "VMess";
|
||||
}
|
||||
}
|
||||
@@ -36,11 +36,6 @@ namespace Netch.Servers.VMess
|
||||
/// </summary>
|
||||
public virtual string FakeType { get; set; } = VMessGlobal.FakeTypes[0];
|
||||
|
||||
/// <summary>
|
||||
/// QUIC
|
||||
/// </summary>
|
||||
public string QUIC { get; set; } = VMessGlobal.QUIC[0];
|
||||
|
||||
/// <summary>
|
||||
/// 伪装域名
|
||||
/// </summary>
|
||||
|
||||
@@ -20,7 +20,15 @@ namespace Netch.Servers.VMess
|
||||
|
||||
public Server ParseJObject(in JObject j)
|
||||
{
|
||||
return j.ToObject<VMess>();
|
||||
// TODO Remove Migrate code
|
||||
var server = j.ToObject<VMess>();
|
||||
if (server == null)
|
||||
return null;
|
||||
string quic;
|
||||
if ((quic = j.GetValue("QUIC")?.ToString()) != null)
|
||||
server.QUICSecure = quic;
|
||||
|
||||
return server;
|
||||
}
|
||||
|
||||
public void Edit(Server s)
|
||||
|
||||
Reference in New Issue
Block a user