Преглед изворни кода

Disable HTTPS in Kestrel if Certificate is null

Claus Vium пре 6 година
родитељ
комит
f2062ba19b
1 измењених фајлова са 1 додато и 1 уклоњено
  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); });
                     }