mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-24 14:40:39 +02:00
Merge pull request #1081 from cvium/certificate_not_null
Disable HTTPS in Kestrel if Certificate is null
This commit is contained in:
commit
63342f89d4
|
@ -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…
Reference in a new issue