Browse Source

Merge pull request #4976 from BaronGreenback/dlnaPortFix

Fixed DLNA Server on RC2

(cherry picked from commit a55442316381232f86b48351290fb96c03b530c1)
Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
Bond-009 4 years ago
parent
commit
ab5ae34595
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Emby.Dlna/Main/DlnaEntryPoint.cs

+ 1 - 1
Emby.Dlna/Main/DlnaEntryPoint.cs

@@ -315,7 +315,7 @@ namespace Emby.Dlna.Main
                 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}
                 // DLNA will only work over http, so we must reset to http:// : {port}
                 uri.Scheme = "http://";
                 uri.Scheme = "http://";
-                uri.Port = _netConfig.PublicPort;
+                uri.Port = _netConfig.HttpServerPortNumber;
 
 
                 var device = new SsdpRootDevice
                 var device = new SsdpRootDevice
                 {
                 {