懒得勤快 5 年之前
父節點
當前提交
78e5600728
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. 1 4
      src/Masuit.MyBlogs.Core/Program.cs

+ 1 - 4
src/Masuit.MyBlogs.Core/Program.cs

@@ -24,10 +24,7 @@ namespace Masuit.MyBlogs.Core
             opt.ListenAnyIP(port.ToInt32());
             if (bool.Parse(config["Https:Enabled"]))
             {
-                opt.ListenAnyIP(config["Https:Port"].ToInt32(), s =>
-                {
-                    s.UseHttps(AppContext.BaseDirectory + config["Https:CertPath"], config["Https:CertPassword"]);
-                });
+                opt.ListenAnyIP(config["Https:Port"].ToInt32(), s => s.UseHttps(AppContext.BaseDirectory + config["Https:CertPath"], config["Https:CertPassword"]));
             }
             opt.Limits.MaxRequestBodySize = null;
         }).UseIISIntegration().UseStartup<Startup>());