From 3cb49d6df005df12c2d626bcdfc708c353855f8e Mon Sep 17 00:00:00 2001 From: Bond_009 Date: Mon, 14 Feb 2022 14:39:33 +0100 Subject: Fix option to disable server discovery --- Emby.Server.Implementations/ApplicationHost.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Emby.Server.Implementations/ApplicationHost.cs') diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs index e7efc81d7..2c6f2c7f6 100644 --- a/Emby.Server.Implementations/ApplicationHost.cs +++ b/Emby.Server.Implementations/ApplicationHost.cs @@ -44,7 +44,6 @@ using Emby.Server.Implementations.Serialization; using Emby.Server.Implementations.Session; using Emby.Server.Implementations.SyncPlay; using Emby.Server.Implementations.TV; -using Emby.Server.Implementations.Udp; using Emby.Server.Implementations.Updates; using Jellyfin.Api.Helpers; using Jellyfin.MediaEncoding.Hls.Playlist; @@ -104,6 +103,7 @@ using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Prometheus.DotNetRuntime; +using static MediaBrowser.Controller.Extensions.ConfigurationExtensions; using WebSocketManager = Emby.Server.Implementations.HttpServer.WebSocketManager; namespace Emby.Server.Implementations @@ -184,6 +184,11 @@ namespace Emby.Server.Implementations /// public event EventHandler HasPendingRestartChanged; + /// + /// Gets the value of the PublishedServerUrl setting. + /// + private string PublishedServerUrl => _startupConfig[AddressOverrideKey]; + /// /// Gets a value indicating whether this instance can self restart. /// @@ -260,11 +265,6 @@ namespace Emby.Server.Implementations /// public int HttpsPort { get; private set; } - /// - /// Gets the value of the PublishedServerUrl setting. - /// - public string PublishedServerUrl => _startupOptions.PublishedServerUrl ?? _startupConfig[UdpServer.AddressOverrideConfigKey]; - /// public Version ApplicationVersion { get; } -- cgit v1.2.3