添加配置文件说明

This commit is contained in:
xljiulang 2021-07-16 19:19:06 +08:00
parent 11ed2d0c27
commit 6b565c14d2
3 changed files with 24 additions and 37 deletions

View File

@ -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;
}

View File

@ -15,24 +15,10 @@
<ProjectReference Include="..\FastGithub.Core\FastGithub.Core.csproj" />
</ItemGroup>
<ItemGroup>
<None Update="dnscrypt-proxy.toml">
<ItemGroup >
<None Update="dnscrypt-proxy*">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="dnscrypt-proxy.exe">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="dnscrypt-proxy">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup Condition="'$(RuntimeIdentifier)' == 'win-x64'">
<None Remove="dnscrypt-proxy" />
</ItemGroup>
<ItemGroup Condition="'$(RuntimeIdentifier)' == 'linux-x64'">
<None Remove="dnscrypt-proxy.exe" />
</ItemGroup>
</Project>

View File

@ -1,14 +1,14 @@
{
"FastGithub": {
"TrustedDns": {
"TrustedDns": { // ip
"IPAddress": "127.0.0.1",
"Port": 5533
"Port": 5533 // 5533dnscrypt-proxy
},
"UnTrustedDns": {
"UnTrustedDns": { // ip
"IPAddress": "114.114.114.114",
"Port": 53
},
"DomainMatches": [
"DomainMatches": [ // *0n
"github.com",
"*.github.com",
"*.github.io",