fix: Add Socks5 Authentication TextBox

This commit is contained in:
ChsBuffer
2020-10-12 15:12:55 +08:00
parent c3eb07005e
commit 5e58708895
2 changed files with 9 additions and 0 deletions

View File

@@ -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);
}
}
}

View File

@@ -18,5 +18,7 @@ namespace Netch.Servers.Socks5
{
Type = "Socks5";
}
public bool Auth() => !string.IsNullOrWhiteSpace(Username) && !string.IsNullOrWhiteSpace(Password);
}
}