mirror of
https://github.com/netchx/netch.git
synced 2026-05-11 23:45:06 +08:00
refactor: ServerForm AddControl methods
test: Parse VMess Uri
This commit is contained in:
@@ -12,30 +12,30 @@ namespace Netch.Servers.ShadowsocksR.Form
|
||||
Server = server;
|
||||
CreateTextBox("Password", "Password",
|
||||
s => true,
|
||||
s => server.Password = (string) s,
|
||||
s => server.Password = s,
|
||||
server.Password);
|
||||
CreateComboBox("EncryptMethod", "Encrypt Method",
|
||||
SSRGlobal.EncryptMethods,
|
||||
s => SSRGlobal.EncryptMethods.Contains(s),
|
||||
s => server.EncryptMethod = (string) s,
|
||||
s => server.EncryptMethod = s,
|
||||
server.EncryptMethod);
|
||||
CreateComboBox("Protocol", "Protocol",
|
||||
SSRGlobal.Protocols,
|
||||
s => SSRGlobal.Protocols.Contains(s),
|
||||
s => server.Protocol = (string) s,
|
||||
s => server.Protocol = s,
|
||||
server.Protocol);
|
||||
CreateTextBox("ProtocolParam", "Protocol Param",
|
||||
s => true,
|
||||
s => server.ProtocolParam = (string) s,
|
||||
s => server.ProtocolParam = s,
|
||||
server.ProtocolParam);
|
||||
CreateComboBox("OBFS", "OBFS",
|
||||
SSRGlobal.OBFSs,
|
||||
s => SSRGlobal.OBFSs.Contains(s),
|
||||
s => server.OBFS = (string) s,
|
||||
s => server.OBFS = s,
|
||||
server.OBFS);
|
||||
CreateTextBox("OBFSParam", "OBFS Param",
|
||||
s => true,
|
||||
s => server.OBFSParam = (string) s,
|
||||
s => server.OBFSParam = s,
|
||||
server.OBFSParam);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user