Hide msg if dlna disabled

This commit is contained in:
BaronGreenback 2021-03-10 19:32:13 +00:00
parent eafb8cf652
commit 2f843b3b48

View file

@ -128,7 +128,8 @@ namespace Emby.Dlna.Main
_netConfig = config.GetConfiguration<NetworkConfiguration>("network");
_disabled = appHost.ListenWithHttps && _netConfig.RequireHttps;
if (_disabled)
if (_disabled && _config.GetDlnaConfiguration().EnableServer)
{
_logger.LogError("The DLNA specification does not support HTTPS.");
}