mirror of
https://github.com/netchx/netch.git
synced 2026-03-28 18:59:46 +08:00
24 lines
487 B
C#
24 lines
487 B
C#
using Netch.Models;
|
|
|
|
namespace Netch.Servers.Socks5
|
|
{
|
|
public class Socks5 : Server
|
|
{
|
|
/// <summary>
|
|
/// 密码
|
|
/// </summary>
|
|
public string Password;
|
|
|
|
/// <summary>
|
|
/// 账号
|
|
/// </summary>
|
|
public string Username;
|
|
|
|
public Socks5()
|
|
{
|
|
Type = "Socks5";
|
|
}
|
|
|
|
public bool Auth() => !string.IsNullOrWhiteSpace(Username) && !string.IsNullOrWhiteSpace(Password);
|
|
}
|
|
} |