diff options
| author | Claus Vium <clausvium@gmail.com> | 2019-03-08 22:25:45 +0100 |
|---|---|---|
| committer | Claus Vium <clausvium@gmail.com> | 2019-03-08 22:25:45 +0100 |
| commit | f2062ba19bb38a2dfa6b10ab778718730fe0f14a (patch) | |
| tree | 096cc054c07ee5bba8a98f6c540a44e01266dabe | |
| parent | c6c398179a7d7704b6abea42a0be980cac62c8ab (diff) | |
Disable HTTPS in Kestrel if Certificate is null
| -rw-r--r-- | Emby.Server.Implementations/ApplicationHost.cs | 2 |
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); }); } |
