mirror of
https://github.com/netchx/netch.git
synced 2026-03-18 18:13:21 +08:00
fix: Add Socks5 Authentication TextBox
This commit is contained in:
@@ -10,6 +10,13 @@ namespace Netch.Servers.Socks5.Form
|
||||
{
|
||||
server ??= new Socks5();
|
||||
Server = server;
|
||||
CreateTextBox("Username", "Username",
|
||||
s => true,
|
||||
s => server.Username = s,
|
||||
server.Username);CreateTextBox("Password", "Password",
|
||||
s => true,
|
||||
s => server.Password = s,
|
||||
server.Password);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,5 +18,7 @@ namespace Netch.Servers.Socks5
|
||||
{
|
||||
Type = "Socks5";
|
||||
}
|
||||
|
||||
public bool Auth() => !string.IsNullOrWhiteSpace(Username) && !string.IsNullOrWhiteSpace(Password);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user