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",