瀏覽代碼

Hide msg if dlna disabled

BaronGreenback 4 年之前
父節點
當前提交
2f843b3b48
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Emby.Dlna/Main/DlnaEntryPoint.cs

+ 2 - 1
Emby.Dlna/Main/DlnaEntryPoint.cs

@@ -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.");
             }