diff --git a/Arashi.Aoi/Startup.cs b/Arashi.Aoi/Startup.cs index 99bfa5b4..61247a20 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"));