mirror of
https://github.com/netchx/netch.git
synced 2026-04-01 19:15:09 +08:00
20 lines
476 B
C#
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);
|
|
}
|
|
}
|
|
} |