2
0
Эх сурвалжийг харах

Hide msg if dlna disabled

BaronGreenback 4 жил өмнө
parent
commit
2f843b3b48

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

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