1
0
mirror of https://github.com/proxysu/ProxySU.git synced 2024-11-23 05:36:08 +03:00
ProxySU/ProxySuper.Core/Models/Projects/BrookSettings.cs

39 lines
844 B
C#
Raw Normal View History

2021-07-02 13:35:25 +03:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProxySuper.Core.Models.Projects
{
public class BrookSettings : IProjectSettings
{
public string Domain { get; set; }
2021-07-07 11:56:53 +03:00
public string IP { get; set; }
2021-07-02 13:35:25 +03:00
public string Password { get; set; }
public BrookType BrookType { get; set; }
public int Port { get; set; } = 443;
public List<int> FreePorts
{
get
{
2021-07-07 07:01:41 +03:00
if (Port == 443)
2021-07-02 13:35:25 +03:00
{
2021-07-07 07:01:41 +03:00
return new List<int> { 80, 443 };
}
return new List<int> { Port };
2021-07-02 13:35:25 +03:00
}
}
public string Email => "server@brook.com";
public ProjectType Type { get; set; } = ProjectType.Brook;
}
}