From 6b565c14d251f585f70acbcc867338d88f3a7353 Mon Sep 17 00:00:00 2001 From: xljiulang <366193849@qq.com> Date: Fri, 16 Jul 2021 19:19:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DnscryptProxyHostedService.cs | 5 +- .../FastGithub.ReverseProxy.csproj | 48 +++++++------------ FastGithub/appsettings.json | 8 ++-- 3 files changed, 24 insertions(+), 37 deletions(-) diff --git a/FastGithub.ReverseProxy/DnscryptProxyHostedService.cs b/FastGithub.ReverseProxy/DnscryptProxyHostedService.cs index f72b30d..9ef2cfe 100644 --- a/FastGithub.ReverseProxy/DnscryptProxyHostedService.cs +++ b/FastGithub.ReverseProxy/DnscryptProxyHostedService.cs @@ -50,11 +50,12 @@ namespace FastGithub.ReverseProxy CreateNoWindow = true, WindowStyle = ProcessWindowStyle.Hidden }); - }; + this.logger.LogInformation($"{dnscryptFile}启动成功"); + } } catch (Exception ex) { - this.logger.LogWarning(ex.Message); + this.logger.LogWarning($"{dnscryptFile}启动失败:{ex.Message}"); } return Task.CompletedTask; } diff --git a/FastGithub.ReverseProxy/FastGithub.ReverseProxy.csproj b/FastGithub.ReverseProxy/FastGithub.ReverseProxy.csproj index 867f20d..08cff91 100644 --- a/FastGithub.ReverseProxy/FastGithub.ReverseProxy.csproj +++ b/FastGithub.ReverseProxy/FastGithub.ReverseProxy.csproj @@ -1,38 +1,24 @@  - - net5.0 - + + net5.0 + - - - - - - + + + + + + - - - + + + - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - - - - - - - - + + + PreserveNewest + + diff --git a/FastGithub/appsettings.json b/FastGithub/appsettings.json index 865f701..530937f 100644 --- a/FastGithub/appsettings.json +++ b/FastGithub/appsettings.json @@ -1,14 +1,14 @@ { "FastGithub": { - "TrustedDns": { + "TrustedDns": { // ڽip "IPAddress": "127.0.0.1", - "Port": 5533 + "Port": 5533 // 5533ָdnscrypt-proxy }, - "UnTrustedDns": { + "UnTrustedDns": { // ڽǴip "IPAddress": "114.114.114.114", "Port": 53 }, - "DomainMatches": [ + "DomainMatches": [ // *ʾ0nַ "github.com", "*.github.com", "*.github.io",