mirror of
https://github.com/netchx/netch.git
synced 2026-03-18 18:13:21 +08:00
Move V2rayUtils
This commit is contained in:
@@ -3,7 +3,7 @@ using Netch.Servers.V2ray;
|
||||
|
||||
namespace Netch.Servers.Socks5
|
||||
{
|
||||
public class S5Controller : V2RayController
|
||||
public class S5Controller : V2rayController
|
||||
{
|
||||
public override string Name { get; } = "Socks5";
|
||||
|
||||
@@ -11,9 +11,7 @@ namespace Netch.Servers.Socks5
|
||||
{
|
||||
var server = (Socks5) s;
|
||||
if (server.Auth())
|
||||
{
|
||||
return base.Start(s, mode);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -5,9 +5,9 @@ using Netch.Servers.V2ray.Utils;
|
||||
|
||||
namespace Netch.Servers.V2ray
|
||||
{
|
||||
public class V2RayController : Guard, IServerController
|
||||
public class V2rayController : Guard, IServerController
|
||||
{
|
||||
public V2RayController()
|
||||
public V2rayController()
|
||||
{
|
||||
StartedKeywords.Add("started");
|
||||
StoppedKeywords.AddRange(new[] {"config file not readable", "failed to"});
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace Netch.Servers.VLESS
|
||||
|
||||
public IServerController GetController()
|
||||
{
|
||||
return new V2RayController();
|
||||
return new V2rayController();
|
||||
}
|
||||
|
||||
public IEnumerable<Server> ParseUri(string text)
|
||||
|
||||
@@ -69,7 +69,7 @@ namespace Netch.Servers.VMess
|
||||
|
||||
public IServerController GetController()
|
||||
{
|
||||
return new V2RayController();
|
||||
return new V2rayController();
|
||||
}
|
||||
|
||||
public IEnumerable<Server> ParseUri(string text)
|
||||
|
||||
Reference in New Issue
Block a user