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