refactor: mode handle supported server

This commit is contained in:
ChsBuffer
2020-12-15 18:23:40 +08:00
parent 23bcac0d5d
commit 39eb1b4eef
5 changed files with 31 additions and 15 deletions

View File

@@ -33,12 +33,7 @@ namespace Netch.Models
/// </summary>
public int Type = 0;
public bool SupportSocks5Auth => Type switch
{
0 => true,
_ => false
};
/// 是否会转发 UDP
public bool TestNatRequired => Type is 0 or 1 or 2;
/// <summary>