Disable HTTPS in Kestrel if Certificate is null

This commit is contained in:
Claus Vium 2019-03-08 22:25:45 +01:00
parent c6c398179a
commit f2062ba19b

View file

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