mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-08 10:44:23 -04:00
Merge pull request #5312 from BaronGreenback/FixFor5280
(cherry picked from commit 9e77fdc70df59cd8f6a60425c5e79c5aeb9b13c8) Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
This commit is contained in:
parent
153123278b
commit
4b6ff7ffa5
@ -316,9 +316,12 @@ namespace Emby.Dlna.Main
|
|||||||
_logger.LogInformation("Registering publisher for {0} on {1}", fullService, address);
|
_logger.LogInformation("Registering publisher for {0} on {1}", fullService, address);
|
||||||
|
|
||||||
var uri = new UriBuilder(_appHost.GetSmartApiUrl(address.Address) + descriptorUri);
|
var uri = new UriBuilder(_appHost.GetSmartApiUrl(address.Address) + descriptorUri);
|
||||||
// DLNA will only work over http, so we must reset to http:// : {port}
|
if (_appHost.PublishedServerUrl == null)
|
||||||
uri.Scheme = "http://";
|
{
|
||||||
uri.Port = _netConfig.HttpServerPortNumber;
|
// DLNA will only work over http, so we must reset to http:// : {port}.
|
||||||
|
uri.Scheme = "http";
|
||||||
|
uri.Port = _netConfig.HttpServerPortNumber;
|
||||||
|
}
|
||||||
|
|
||||||
var device = new SsdpRootDevice
|
var device = new SsdpRootDevice
|
||||||
{
|
{
|
||||||
|
@ -134,6 +134,9 @@ namespace Emby.Server.Implementations
|
|||||||
|
|
||||||
public bool CoreStartupHasCompleted { get; private set; }
|
public bool CoreStartupHasCompleted { get; private set; }
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
public Uri PublishedServerUrl => _startupOptions.PublishedServerUrl;
|
||||||
|
|
||||||
public virtual bool CanLaunchWebBrowser
|
public virtual bool CanLaunchWebBrowser
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
@ -52,6 +52,11 @@ namespace MediaBrowser.Controller
|
|||||||
/// <value>The name of the friendly.</value>
|
/// <value>The name of the friendly.</value>
|
||||||
string FriendlyName { get; }
|
string FriendlyName { get; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the configured published server url.
|
||||||
|
/// </summary>
|
||||||
|
Uri PublishedServerUrl { get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the system info.
|
/// Gets the system info.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user