Files
netch/Netch/Servers/Socks5/Socks5Controller.cs
ChsBuffer 635212f24d Replace NTTController with NatTypetester(Stun.Net)
Enable NAT Type Test for all mode types
Remove Shadowsocks SS
2021-09-10 23:56:25 +08:00

20 lines
476 B
C#

using System;
using System.Threading.Tasks;
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);
}
}
}