using System; using System.Net; namespace FastGithub.Dns { /// /// dns服务选项 /// [Options("Dns")] sealed class DnsOptions { /// /// 获取或设置上游ip地址 /// public string UpStream { get; set; } = "114.114.114.114"; /// /// 获取或设置github相关域名的ip存活时长 /// public TimeSpan GithubTTL { get; set; } = TimeSpan.FromMinutes(10d); /// /// 是否设置本机使用此dns /// public bool SetToLocalMachine { get; set; } = true; /// /// 是否使用反向代理访问github /// public bool UseGithubReverseProxy { get; set; } = true; /// /// dns响应的反向代理服务的ip /// public string GithubReverseProxyIPAddress { get; set; } = IPAddress.Loopback.ToString(); } }