|
|
|
@ -316,7 +316,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 (_appHost.PublishedServerUrl == null)
|
|
|
|
|
if (!string.IsNullOrEmpty(_appHost.PublishedServerUrl))
|
|
|
|
|
{
|
|
|
|
|
// DLNA will only work over http, so we must reset to http:// : {port}.
|
|
|
|
|
uri.Scheme = "http";
|
|
|
|
|