2
0

FastGithubOptions.cs 670 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Net;
  4. namespace FastGithub.Configuration
  5. {
  6. /// <summary>
  7. /// FastGithub的配置
  8. /// </summary>
  9. public class FastGithubOptions
  10. {
  11. /// <summary>
  12. /// http代理端口
  13. /// </summary>
  14. public int HttpProxyPort { get; set; } = 38457;
  15. /// <summary>
  16. /// 回退的dns
  17. /// </summary>
  18. public IPEndPoint[] FallbackDns { get; set; } = Array.Empty<IPEndPoint>();
  19. /// <summary>
  20. /// 代理的域名配置
  21. /// </summary>
  22. public Dictionary<string, DomainConfig> DomainConfigs { get; set; } = new();
  23. }
  24. }