This commit is contained in:
陈国伟 2021-07-14 15:32:53 +08:00
parent 7d1e5b2b2b
commit 224230a226
4 changed files with 40 additions and 44 deletions

View File

@ -1,6 +1,6 @@
<Project> <Project>
<PropertyGroup> <PropertyGroup>
<Version>1.0.2</Version> <Version>1.0.3</Version>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<Description>github定制版的dns服务解析github最优的ip</Description> <Description>github定制版的dns服务解析github最优的ip</Description>
<Copyright>https://github.com/xljiulang/FastGithub</Copyright> <Copyright>https://github.com/xljiulang/FastGithub</Copyright>

View File

@ -11,6 +11,6 @@ namespace FastGithub.Scanner
/// <summary> /// <summary>
/// 反查的域名 /// 反查的域名
/// </summary> /// </summary>
public HashSet<string> Domains { get; set; } = new(); public string [] Domains { get; set; } = new string[0];
} }
} }

View File

@ -5,7 +5,7 @@
<TargetFrameworks>net5.0;net6.0</TargetFrameworks> <TargetFrameworks>net5.0;net6.0</TargetFrameworks>
<PackageLicenseExpression>MIT</PackageLicenseExpression> <PackageLicenseExpression>MIT</PackageLicenseExpression>
<ApplicationIcon>app.ico</ApplicationIcon> <ApplicationIcon>app.ico</ApplicationIcon>
<ANCMPreConfiguredForIIS>true</ANCMPreConfiguredForIIS> <IsWebConfigTransformDisabled>true</IsWebConfigTransformDisabled>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)' == 'net6.0'"> <PropertyGroup Condition="'$(TargetFramework)' == 'net6.0'">

View File

@ -1,7 +1,6 @@
using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Hosting;
using System.IO;
namespace FastGithub namespace FastGithub
{ {
@ -29,10 +28,7 @@ namespace FastGithub
.UseBinaryPathContentRoot() .UseBinaryPathContentRoot()
.ConfigureAppConfiguration(c => .ConfigureAppConfiguration(c =>
{ {
foreach (var jsonFile in Directory.GetFiles(".", "appsettings.*.json")) c.AddJsonFile("appsettings.github.json", optional: true);
{
c.AddJsonFile(jsonFile, optional: true);
}
}) })
.ConfigureServices((ctx, services) => .ConfigureServices((ctx, services) =>
{ {