aboutsummaryrefslogtreecommitdiff
path: root/Emby.Dlna
diff options
context:
space:
mode:
authorClaus Vium <cvium@users.noreply.github.com>2021-02-27 20:01:51 +0100
committerJoshua M. Boniface <joshua@boniface.me>2021-02-27 22:30:50 -0500
commit4b6ff7ffa5f88992420976c2c28e898dfdcbe4dc (patch)
tree0a972f7b259a8a87197bf259b18eba898dec7247 /Emby.Dlna
parent153123278bcf319499860007071c852d488bddbe (diff)
Merge pull request #5312 from BaronGreenback/FixFor5280
(cherry picked from commit 9e77fdc70df59cd8f6a60425c5e79c5aeb9b13c8) Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
Diffstat (limited to 'Emby.Dlna')
-rw-r--r--Emby.Dlna/Main/DlnaEntryPoint.cs9
1 files changed, 6 insertions, 3 deletions
diff --git a/Emby.Dlna/Main/DlnaEntryPoint.cs b/Emby.Dlna/Main/DlnaEntryPoint.cs
index 8f60c3f78..ec8716029 100644
--- a/Emby.Dlna/Main/DlnaEntryPoint.cs
+++ b/Emby.Dlna/Main/DlnaEntryPoint.cs
@@ -316,9 +316,12 @@ namespace Emby.Dlna.Main
_logger.LogInformation("Registering publisher for {0} on {1}", fullService, address);
var uri = new UriBuilder(_appHost.GetSmartApiUrl(address.Address) + descriptorUri);
- // DLNA will only work over http, so we must reset to http:// : {port}
- uri.Scheme = "http://";
- uri.Port = _netConfig.HttpServerPortNumber;
+ if (_appHost.PublishedServerUrl == null)
+ {
+ // DLNA will only work over http, so we must reset to http:// : {port}.
+ uri.Scheme = "http";
+ uri.Port = _netConfig.HttpServerPortNumber;
+ }
var device = new SsdpRootDevice
{