Merge pull request #1081 from cvium/certificate_not_null

Disable HTTPS in Kestrel if Certificate is null
pull/1104/head
Anthony Lavado 6 years ago committed by GitHub
commit 63342f89d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save