1
0
mirror of https://github.com/proxysu/ProxySU.git synced 2025-02-19 16:03:17 +03:00

33 lines
1.3 KiB
C#
Raw Normal View History

2021-08-20 11:52:45 +08:00
using ProxySuper.Core.Services;
2021-06-17 18:54:07 +08:00
using System;
2021-05-13 09:58:45 +08:00
using System.Collections.Generic;
2021-07-12 17:58:51 +08:00
using System.Linq;
2021-08-20 11:52:45 +08:00
using System.Text;
using System.Threading.Tasks;
2021-05-13 09:58:45 +08:00
2021-05-14 19:07:19 +08:00
namespace ProxySuper.Core.Models.Projects
2021-05-13 09:58:45 +08:00
{
2021-08-20 11:52:45 +08:00
public class XraySettings : V2raySettings
2021-05-13 09:58:45 +08:00
{
2023-05-07 20:17:03 -07:00
public static List<string> UTLSList = new List<string> { "", "chrome", "firefox", "safari", "ios", "android", "edge", "360", "qq", "random", "randomized" };
//流控参数在服务端只有两种 "none", "xtls-rprx-vision",客户端可以选择三种:"none", "xtls-rprx-vision", "xtls-rprx-vision-udp443",但是选择了XTLS模式就是默认flow不为空或者"none",所以这里不再填加"none"这一项。
public static List<string> FlowList = new List<string> { "xtls-rprx-vision", "xtls-rprx-vision-udp443" }; //{ "xtls-rprx-origin", "xtls-rprx-origin-udp443", "xtls-rprx-direct", "xtls-rprx-direct-udp443", "xtls-rprx-splice", "xtls-rprx-splice-udp443" };
2022-11-21 16:42:47 +08:00
public string UTLS { get; set; } = UTLSList[1];
2023-05-07 20:17:03 -07:00
public string Flow { get; set; } = FlowList[0];
2022-11-23 22:06:09 +08:00
2021-08-19 17:54:23 +08:00
/// <summary>
2021-08-20 11:52:45 +08:00
/// vless xtls shareLink
2021-08-19 17:54:23 +08:00
/// </summary>
2021-08-20 11:52:45 +08:00
public string VLESS_TCP_XTLS_ShareLink
2021-06-17 18:54:07 +08:00
{
get
{
2021-08-20 11:52:45 +08:00
return ShareLink.Build(RayType.VLESS_TCP_XTLS, this);
2021-05-13 09:58:45 +08:00
}
}
}
}