Browse Source

Disable HTTPS in Kestrel if Certificate is null

Claus Vium 6 năm trước cách đây
mục cha
commit
f2062ba19b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Emby.Server.Implementations/ApplicationHost.cs

+ 1 - 1
Emby.Server.Implementations/ApplicationHost.cs

@@ -629,7 +629,7 @@ namespace Emby.Server.Implementations
                 {
                     options.ListenAnyIP(HttpPort);
 
-                    if (EnableHttps)
+                    if (EnableHttps && Certificate != null)
                     {
                         options.ListenAnyIP(HttpsPort, listenOptions => { listenOptions.UseHttps(Certificate); });
                     }