This commit is contained in:
ChsBuffer
2021-02-16 22:34:13 +08:00
parent 07ec5fb84a
commit 182937ab69
2 changed files with 12 additions and 5 deletions

View File

@@ -325,8 +325,8 @@ namespace Netch.Servers.V2ray.Utils
case "quic":
var quicSettings = new QuicSettings
{
security = server.Host,
key = server.Path,
security = server.QUICSecure,
key = server.QUICSecret,
header = new Header
{
type = server.FakeType

View File

@@ -3,10 +3,8 @@ using Netch.Forms;
namespace Netch.Servers.VLESS.VLESSForm
{
class VLESSForm : ServerForm
internal class VLESSForm : ServerForm
{
protected override string TypeName { get; } = "VLESS";
public VLESSForm(VLESS server = default)
{
server ??= new VLESS();
@@ -39,6 +37,14 @@ namespace Netch.Servers.VLESS.VLESSForm
s => true,
s => server.Path = s,
server.Path);
CreateComboBox("QUICSecurity", "QUIC Security",
VLESSGlobal.QUIC,
s => server.QUICSecure = s,
server.QUICSecure);
CreateTextBox("QUICSecret", "QUIC Secret",
s => true,
s => server.QUICSecret = s,
server.QUICSecret);
CreateComboBox("UseMux", "Use Mux",
new List<string> {"", "true", "false"},
s => server.UseMux = s switch
@@ -54,5 +60,6 @@ namespace Netch.Servers.VLESS.VLESSForm
s => server.TLSSecureType = s,
server.TLSSecureType);
}
protected override string TypeName { get; } = "VLESS";
}
}