mirror of
https://github.com/proxysu/ProxySU.git
synced 2024-11-25 14:46:08 +03:00
70 lines
1.6 KiB
C#
70 lines
1.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace ProxySuper.Core.Models
|
|
{
|
|
public partial class XraySettings : IProjectSettings
|
|
{
|
|
public List<int> FreePorts
|
|
{
|
|
get
|
|
{
|
|
return new List<int>
|
|
{
|
|
VLESS_KCP_Port,
|
|
VMESS_KCP_Port,
|
|
ShadowsocksPort,
|
|
};
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// UUID
|
|
/// </summary>
|
|
public string UUID { get; set; }
|
|
|
|
/// <summary>
|
|
/// 端口
|
|
/// </summary>
|
|
public int Port { get; set; }
|
|
|
|
/// <summary>
|
|
/// 域名
|
|
/// </summary>
|
|
public string Domain { get; set; }
|
|
|
|
/// <summary>
|
|
/// 伪装域名
|
|
/// </summary>
|
|
public string MaskDomain { get; set; }
|
|
|
|
/// <summary>
|
|
/// 安装类型
|
|
/// </summary>
|
|
public List<XrayType> Types { get; set; }
|
|
|
|
/// <summary>
|
|
/// 根据xray类型获取路径
|
|
/// </summary>
|
|
/// <param name="type"></param>
|
|
/// <returns></returns>
|
|
public string GetPath(XrayType type)
|
|
{
|
|
switch (type)
|
|
{
|
|
case XrayType.VLESS_WS:
|
|
return VLESS_WS_Path;
|
|
case XrayType.VMESS_TCP:
|
|
return VMESS_TCP_Path;
|
|
case XrayType.VMESS_WS:
|
|
return VMESS_WS_Path;
|
|
default:
|
|
return string.Empty;
|
|
}
|
|
}
|
|
}
|
|
}
|