mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-04 06:48:35 +01:00
fix for override ports contained in PublishedServerUrl
This commit is contained in:
@@ -135,6 +135,11 @@ namespace Emby.Server.Implementations
|
||||
|
||||
public bool CoreStartupHasCompleted { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether this instance has a custom published url.
|
||||
/// </summary>
|
||||
public Uri PublishedServerUrl => _startupOptions.PublishedServerUrl;
|
||||
|
||||
public virtual bool CanLaunchWebBrowser
|
||||
{
|
||||
get
|
||||
@@ -1141,6 +1146,11 @@ 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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user