Browse Source

Enable DLNA multi socket binding for linux

If not, DLNA on multiple interfaces not works for linux, for
example ZerotierOne VPN.
Xu Fasheng 6 years ago
parent
commit
2db1826ed8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Emby.Dlna/Main/DlnaEntryPoint.cs

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

@@ -169,7 +169,8 @@ namespace Emby.Dlna.Main
             {
             {
                 if (_communicationsServer == null)
                 if (_communicationsServer == null)
                 {
                 {
-                    var enableMultiSocketBinding = _environmentInfo.OperatingSystem == MediaBrowser.Model.System.OperatingSystem.Windows;
+                    var enableMultiSocketBinding = _environmentInfo.OperatingSystem == MediaBrowser.Model.System.OperatingSystem.Windows ||
+                                                   _environmentInfo.OperatingSystem == MediaBrowser.Model.System.OperatingSystem.Linux;
 
 
                     _communicationsServer = new SsdpCommunicationsServer(_config, _socketFactory, _networkManager, _logger, enableMultiSocketBinding)
                     _communicationsServer = new SsdpCommunicationsServer(_config, _socketFactory, _networkManager, _logger, enableMultiSocketBinding)
                     {
                     {