using System.Collections.Generic; using System.Net; using System.Net.NetworkInformation; namespace Netch { public static class Global { /// /// 主窗体 /// public static Forms.MainForm MainForm; /// /// 设置窗体 /// public static Forms.SettingForm SettingForm; /// /// SS/SSR 加密方式 /// public static class EncryptMethods { /// /// SS 加密列表 /// public static List SS = new List { "rc4-md5", "aes-128-gcm", "aes-192-gcm", "aes-256-gcm", "aes-128-cfb", "aes-192-cfb", "aes-256-cfb", "aes-128-ctr", "aes-192-ctr", "aes-256-ctr", "camellia-128-cfb", "camellia-192-cfb", "camellia-256-cfb", "bf-cfb", "chacha20-ietf-poly1305", "xchacha20-ietf-poly1305", "salsa20", "chacha20", "chacha20-ietf" }; /// /// SSR 加密列表 /// public static List SSR = new List { "none", "table", "rc4", "rc4-md5", "rc4-md5-6", "aes-128-cfb", "aes-192-cfb", "aes-256-cfb", "aes-128-ctr", "aes-192-ctr", "aes-256-ctr", "bf-cfb", "camellia-128-cfb", "camellia-192-cfb", "camellia-256-cfb", "cast5-cfb", "des-cfb", "idea-cfb", "rc2-cfb", "seed-cfb", "salsa20", "chacha20", "chacha20-ietf" }; /// /// VMess 解密列表 /// public static List VMess = new List { "auto", "none", "aes-128-gcm", "chacha20-poly1305" }; /// /// VMess QUIC 加密列表 /// public static List VMessQUIC = new List { "none", "aes-128-gcm", "chacha20-poly1305" }; } /// /// SSR 协议列表 /// public static List Protocols = new List { "origin", "verify_deflate", "auth_sha1_v4", "auth_aes128_md5", "auth_aes128_sha1", "auth_chain_a" }; /// /// SSR 混淆列表 /// public static List OBFSs = new List { "plain", "http_simple", "http_post", "tls1.2_ticket_auth" }; /// /// V2Ray 传输协议 /// public static List TransferProtocols = new List { "tcp", "kcp", "ws", "h2", "quic" }; /// /// V2Ray 伪装类型 /// public static List FakeTypes = new List { "none", "http", "srtp", "utp", "wechat-video", "dtls", "wireguard" }; /// /// 适配器 /// public static class Adapter { /// /// 索引 /// public static int Index = -1; /// /// 地址 /// public static IPAddress Address; /// /// 网关 /// public static IPAddress Gateway; } /// /// TUN/TAP 适配器 /// public static class TUNTAP { /// /// 适配器 /// public static NetworkInterface Adapter; /// /// 索引 /// public static int Index = -1; /// /// 组件 ID /// public static string ComponentID = string.Empty; } /// /// 用于读取和写入的配置 /// public static Models.Setting Settings = new Models.Setting(); /// /// 用于存储模式文件内容 /// public static List ModeFiles = new List(); } }