From 224230a2266257c8dcd8b3bbf3566d2f560f8a3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=9B=BD=E4=BC=9F?= <366193849@qq.com> Date: Wed, 14 Jul 2021 15:32:53 +0800 Subject: [PATCH] 1.0.3 --- Directory.Build.props | 2 +- .../GithubLookupFactoryOptions.cs | 2 +- FastGithub/FastGithub.csproj | 74 +++++++++---------- FastGithub/Program.cs | 6 +- 4 files changed, 40 insertions(+), 44 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 3751098..5703982 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,6 +1,6 @@ - 1.0.2 + 1.0.3 enable github定制版的dns服务,解析github最优的ip https://github.com/xljiulang/FastGithub diff --git a/FastGithub.Scanner/GithubLookupFactoryOptions.cs b/FastGithub.Scanner/GithubLookupFactoryOptions.cs index da8e753..354e0f5 100644 --- a/FastGithub.Scanner/GithubLookupFactoryOptions.cs +++ b/FastGithub.Scanner/GithubLookupFactoryOptions.cs @@ -11,6 +11,6 @@ namespace FastGithub.Scanner /// /// 反查的域名 /// - public HashSet Domains { get; set; } = new(); + public string [] Domains { get; set; } = new string[0]; } } diff --git a/FastGithub/FastGithub.csproj b/FastGithub/FastGithub.csproj index 806f03b..b53c703 100644 --- a/FastGithub/FastGithub.csproj +++ b/FastGithub/FastGithub.csproj @@ -1,45 +1,45 @@  - - Exe - net5.0;net6.0 - MIT - app.ico - true - + + Exe + net5.0;net6.0 + MIT + app.ico + true + - - true - + + true + - - app.manifest - + + app.manifest + - - - - - - - + + + + + + + - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + diff --git a/FastGithub/Program.cs b/FastGithub/Program.cs index 7c701ec..d705577 100644 --- a/FastGithub/Program.cs +++ b/FastGithub/Program.cs @@ -1,7 +1,6 @@ using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; -using System.IO; namespace FastGithub { @@ -29,10 +28,7 @@ namespace FastGithub .UseBinaryPathContentRoot() .ConfigureAppConfiguration(c => { - foreach (var jsonFile in Directory.GetFiles(".", "appsettings.*.json")) - { - c.AddJsonFile(jsonFile, optional: true); - } + c.AddJsonFile("appsettings.github.json", optional: true); }) .ConfigureServices((ctx, services) => {