修复没有使用PureDns解析ip的bug

This commit is contained in:
陈国伟 2021-07-20 16:58:35 +08:00
parent f13daff767
commit 9451152d76

View File

@ -35,8 +35,8 @@ namespace FastGithub.ReverseProxy
this.options = options;
this.logger = logger;
this.dnsClient = new DnsClient(options.CurrentValue.FastDns.ToIPEndPoint());
options.OnChange(opt => this.dnsClient = new DnsClient(opt.FastDns.ToIPEndPoint()));
this.dnsClient = new DnsClient(options.CurrentValue.PureDns.ToIPEndPoint());
options.OnChange(opt => this.dnsClient = new DnsClient(opt.PureDns.ToIPEndPoint()));
}
/// <summary>