From 778e0ef642f19dc43c6a0643b449e5557e4a9bce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=9B=BD=E4=BC=9F?= <366193849@qq.com> Date: Fri, 16 Jul 2021 11:50:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8F=90=E7=A4=BA=E8=AF=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FastGithub.Dns/DnsServerHostedService.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/FastGithub.Dns/DnsServerHostedService.cs b/FastGithub.Dns/DnsServerHostedService.cs index aa2ce82..45cf53d 100644 --- a/FastGithub.Dns/DnsServerHostedService.cs +++ b/FastGithub.Dns/DnsServerHostedService.cs @@ -130,7 +130,6 @@ namespace FastGithub.Dns this.logger.LogInformation($"设置本机dns成功"); return results; } - catch (Exception ex) { this.logger.LogWarning($"设置本机dns失败:{ex.Message}"); @@ -138,7 +137,7 @@ namespace FastGithub.Dns } else { - this.logger.LogError("不支持自动为本机设备设置dns值"); + this.logger.LogError("不支持自动设置dns,请手动设置网卡的dns为127.0.0.1"); } return default;