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
commit 63342f89d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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