Merge pull request #1081 from cvium/certificate_not_null

Disable HTTPS in Kestrel if Certificate is null
This commit is contained in:
Anthony Lavado
2019-03-09 02:11:02 -05:00
committed by GitHub

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); });
}