aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Lavado <anthonylavado@users.noreply.github.com>2019-03-09 02:11:02 -0500
committerGitHub <noreply@github.com>2019-03-09 02:11:02 -0500
commit63342f89d42288efec7b5f5696823fbcc845d5c5 (patch)
tree096cc054c07ee5bba8a98f6c540a44e01266dabe
parentc6c398179a7d7704b6abea42a0be980cac62c8ab (diff)
parentf2062ba19bb38a2dfa6b10ab778718730fe0f14a (diff)
Merge pull request #1081 from cvium/certificate_not_null
Disable HTTPS in Kestrel if Certificate is null
-rw-r--r--Emby.Server.Implementations/ApplicationHost.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs
index f7d9bad1b..ae5460674 100644
--- a/Emby.Server.Implementations/ApplicationHost.cs
+++ b/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); });
}