FastGithubOptions.cs 857 B

123456789101112131415161718192021222324252627282930
  1. using System.Collections.Generic;
  2. namespace FastGithub.Configuration
  3. {
  4. /// <summary>
  5. /// FastGithub的配置
  6. /// </summary>
  7. public class FastGithubOptions
  8. {
  9. /// <summary>
  10. /// 监听配置
  11. /// </summary>
  12. public ListenConfig Listen { get; set; } = new ListenConfig();
  13. /// <summary>
  14. /// 未污染的dns
  15. /// </summary>
  16. public DnsConfig PureDns { get; set; } = new DnsConfig { IPAddress = "127.0.0.1", Port = 5533 };
  17. /// <summary>
  18. /// 速度快的dns
  19. /// </summary>
  20. public DnsConfig FastDns { get; set; } = new DnsConfig { IPAddress = "114.114.114.114", Port = 53 };
  21. /// <summary>
  22. /// 代理的域名配置
  23. /// </summary>
  24. public Dictionary<string, DomainConfig> DomainConfigs { get; set; } = new();
  25. }
  26. }