1
0
mirror of https://github.com/proxysu/ProxySU.git synced 2024-11-27 15:46:07 +03:00
ProxySU/ProxySuper.Core/Models/Projects/TrojanGoSettings.cs

63 lines
1.4 KiB
C#
Raw Normal View History

2021-05-13 04:58:45 +03:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
2021-05-14 14:07:19 +03:00
namespace ProxySuper.Core.Models.Projects
2021-05-13 04:58:45 +03:00
{
public class TrojanGoSettings : IProjectSettings
{
2021-05-20 13:32:17 +03:00
public List<int> FreePorts
2021-05-13 04:58:45 +03:00
{
get
{
return new List<int>();
}
}
2021-05-20 13:32:17 +03:00
public ProjectType Type { get; set; } = ProjectType.TrojanGo;
2021-05-14 14:07:19 +03:00
2021-05-13 04:58:45 +03:00
/// <summary>
/// 域名
/// </summary>
2021-05-20 13:32:17 +03:00
public string Domain { get; set; }
2021-05-13 04:58:45 +03:00
/// <summary>
/// 端口
/// </summary>
2021-05-20 13:32:17 +03:00
public int Port { get; set; }
2021-05-13 04:58:45 +03:00
/// <summary>
/// 密码
/// </summary>
public string Password { get; set; }
/// <summary>
/// 伪装域名
/// </summary>
public string MaskDomain { get; set; }
2021-05-20 13:32:17 +03:00
/// <summary>
/// 是否开启WebSocket
/// </summary>
public bool EnableWebSocket
{
get
{
return !string.IsNullOrEmpty(WebSocketPath) && !string.IsNullOrEmpty(WebSocketDomain);
}
}
/// <summary>
/// websocket路径
/// </summary>
public string WebSocketPath { get; set; }
/// <summary>
/// websocket域名
/// </summary>
public string WebSocketDomain { get; set; }
2021-05-13 04:58:45 +03:00
}
}