From 00575be9866f5901dd52189a90eb0b66c60ac8fd Mon Sep 17 00:00:00 2001 From: Milkey Tan <24996957+mili-tan@users.noreply.github.com> Date: Wed, 26 Jun 2024 13:55:20 +0800 Subject: [PATCH] IndexStr --- Arashi.Aoi/Startup.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Arashi.Aoi/Startup.cs b/Arashi.Aoi/Startup.cs index 99bfa5b4e..61247a209 100644 --- a/Arashi.Aoi/Startup.cs +++ b/Arashi.Aoi/Startup.cs @@ -24,7 +24,7 @@ public class Startup public static HeaderDictionary HeaderDict = new(); public static string IndexStr = File.Exists(SetupBasePath + "index.html") ? File.ReadAllText(SetupBasePath + "index.html") - : "Welcome to ArashiDNS.Aoi"; + : "200 OK"; public void ConfigureServices(IServiceCollection services) { @@ -41,12 +41,6 @@ public void ConfigureServices(IServiceCollection services) HeaderDict.Add("Access-Control-Allow-Origin", "*"); - //if (Config.RankEnable) - //{ - // var timer = new Timer(600000) { Enabled = true, AutoReset = true }; - // timer.Elapsed += (_, _) => DNSRank.Database.Checkpoint(); - //} - services.AddMemoryCache(); services.Configure(new ConfigurationBuilder() .AddJsonFile("appsettings.json").Build().GetSection("IpRateLimiting"));