mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-18 22:50:50 +08:00
98 lines
2.5 KiB
C#
98 lines
2.5 KiB
C#
using SteamTool.Model;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Net;
|
|
using System.Text;
|
|
|
|
namespace SteamTool.Proxy
|
|
{
|
|
public class ProxyDomainModel
|
|
{
|
|
/// <summary>
|
|
/// 显示在UI上的名称
|
|
/// </summary>
|
|
public string Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// 代理域名合集
|
|
/// </summary>
|
|
public IReadOnlyCollection<string> Domains { get; set; }
|
|
|
|
/// <summary>
|
|
/// 端口
|
|
/// </summary>
|
|
public int Port { get; set; } = 443;
|
|
|
|
/// <summary>
|
|
/// 转发域名
|
|
/// </summary>
|
|
public string ToDomain { get; set; }
|
|
|
|
/// <summary>
|
|
/// 转发域名IP
|
|
/// </summary>
|
|
public string ProxyIPAddres { get; set; }
|
|
|
|
/// <summary>
|
|
/// 伪装的ServerName
|
|
/// </summary>
|
|
public string ServerName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 启用该域名代理
|
|
/// </summary>
|
|
public bool IsEnable { get; set; }
|
|
|
|
/// <summary>
|
|
/// 启用重定向
|
|
/// </summary>
|
|
public bool IsRedirect { get; set; }
|
|
|
|
public IReadOnlyCollection<string> Hosts { get; set; }
|
|
|
|
public DomainTag DomainTag { get; set; }
|
|
}
|
|
|
|
[TypeConverter(typeof(EnumDescriptionTypeConverter))]
|
|
public enum DomainTag : byte
|
|
{
|
|
[Description("steam社区")]
|
|
SteamCommunity = 0,
|
|
[Description("steam商店")]
|
|
SteamStore = 1,
|
|
[Description("steam部分图片修复")]
|
|
SteamImage = 2,
|
|
[Description("steam好友服务")]
|
|
SteamChat = 3,
|
|
[Description("Discord语音")]
|
|
Discord = 4,
|
|
[Description("Twitch直播")]
|
|
Twitch = 5,
|
|
[Description("Origin下载(Akamai)")]
|
|
OriginGameDownload = 6,
|
|
[Description("GOG.COM")]
|
|
GOG = 7,
|
|
[Description("Google(Recaptcha)")]
|
|
GoogleCode = 8,
|
|
[Description("Github图片及资源修复")]
|
|
GithubContent = 9,
|
|
[Description("Pixiv")]
|
|
Pixiv = 10,
|
|
[Description("Discord更新下载")]
|
|
DiscordNet = 11,
|
|
[Description("Uplay更新防劫持")]
|
|
UplayUpdate = 12,
|
|
[Description("Twitch聊天")]
|
|
TwitchChat = 13,
|
|
[Description("Github Gist")]
|
|
GithubGist = 14,
|
|
[Description("Pixiv图片")]
|
|
PixivImage = 15,
|
|
[Description("steam图片上传(聊天\\截图)")]
|
|
SteamImageUpload = 16,
|
|
[Description("steam更新")]
|
|
SteamMeidia = 17,
|
|
}
|
|
}
|