using System.Collections.Generic; namespace FastGithub { /// /// FastGithub的配置 /// public class FastGithubOptions { /// /// 受信任的dns服务 /// public DnsConfig TrustedDns { get; set; } = new DnsConfig { IPAddress = "127.0.0.1", Port = 5533 }; /// /// 不受信任的dns服务 /// public DnsConfig UntrustedDns { get; set; } = new DnsConfig { IPAddress = "114.114.114.114", Port = 53 }; /// /// 代理的域名配置 /// public Dictionary DomainConfigs { get; set; } = new(); /// /// 初始化选项为配置 /// /// public void InitConfig() { this.fastGithubConfig = new FastGithubConfig(this); } /// /// 配置 /// private FastGithubConfig? fastGithubConfig; /// /// 获取配置 /// public FastGithubConfig Config => this.fastGithubConfig!; } }