Files
netch/Netch/Servers/Socks5/Socks5Controller.cs
ChsBuffer 8fb2bdcee9 C# 10
2021-11-13 00:44:09 +08:00

17 lines
386 B
C#

using Netch.Models;
namespace Netch.Servers;
public class Socks5Controller : V2rayController
{
public override string Name { get; } = "Socks5";
public override async Task<Socks5LocalServer> StartAsync(Server s)
{
var server = (Socks5Server)s;
if (!server.Auth())
throw new ArgumentException();
return await base.StartAsync(s);
}
}