浏览代码

removed bad merge code

BaronGreenback 4 年之前
父节点
当前提交
d95ca20fc7
共有 2 个文件被更改,包括 1 次插入6 次删除
  1. 1 1
      Emby.Dlna/Main/DlnaEntryPoint.cs
  2. 0 5
      Emby.Server.Implementations/ApplicationHost.cs

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

@@ -313,7 +313,7 @@ namespace Emby.Dlna.Main
                 _logger.LogInformation("Registering publisher for {0} on {1}", fullService, address);
 
                 var uri = new UriBuilder(_appHost.GetSmartApiUrl(address.Address) + descriptorUri);
-                if (string.IsNullOrEmpty(_appHost.PublishedServerUrl))
+                if (_appHost.PublishedServerUrl == null)
                 {
                     // DLNA will only work over http, so we must reset to http:// : {port}.
                     uri.Scheme = "http";

+ 0 - 5
Emby.Server.Implementations/ApplicationHost.cs

@@ -1146,11 +1146,6 @@ namespace Emby.Server.Implementations
         /// <inheritdoc/>
         public bool ListenWithHttps => Certificate != null && ServerConfigurationManager.GetNetworkConfiguration().EnableHttps;
 
-        public string GetStartupOption(string propName)
-        {
-            return _startupOptions.GetType().GetProperty(propName).GetValue(src, null);
-        }
-
         /// <inheritdoc/>
         public string GetSmartApiUrl(IPAddress ipAddress, int? port = null)
         {