Files
netch/Netch/Servers/Trojan/TrojanForm.cs
2022-06-07 08:12:52 +08:00

18 lines
621 B
C#

using Netch.Forms;
namespace Netch.Servers;
[Fody.ConfigureAwait(true)]
public class TrojanForm : ServerForm
{
public TrojanForm(TrojanServer? server = default)
{
server ??= new TrojanServer();
Server = server;
CreateTextBox("Password", "Password", s => true, s => server.Password = s, server.Password);
CreateTextBox("Host", "Host", s => true, s => server.Host = s, server.Host);
CreateComboBox("TLSSecure", "TLS Secure", VLESSGlobal.TLSSecure, s => server.TLSSecureType = s, server.TLSSecureType);
}
protected override string TypeName { get; } = "Trojan";
}