mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-09 15:20:34 +02:00
Fix for ignoreVirtualInterfaces
This commit is contained in:
parent
7acee4070e
commit
605bd80251
|
@ -916,7 +916,8 @@ namespace Jellyfin.Networking.Manager
|
||||||
// Add virtual machine interface names to the list of bind exclusions, so that they are auto-excluded.
|
// Add virtual machine interface names to the list of bind exclusions, so that they are auto-excluded.
|
||||||
if (config.IgnoreVirtualInterfaces)
|
if (config.IgnoreVirtualInterfaces)
|
||||||
{
|
{
|
||||||
var virtualInterfaceNames = config.VirtualInterfaceNames.Split(',');
|
// each virtual interface name must be pre-pended with the exclusion symbol !
|
||||||
|
var virtualInterfaceNames = config.VirtualInterfaceNames.Split(',').Select(p => '!' + p).ToArray();
|
||||||
var newList = new string[lanAddresses.Length + virtualInterfaceNames.Length];
|
var newList = new string[lanAddresses.Length + virtualInterfaceNames.Length];
|
||||||
Array.Copy(lanAddresses, newList, lanAddresses.Length);
|
Array.Copy(lanAddresses, newList, lanAddresses.Length);
|
||||||
Array.Copy(virtualInterfaceNames, 0, newList, lanAddresses.Length, virtualInterfaceNames.Length);
|
Array.Copy(virtualInterfaceNames, 0, newList, lanAddresses.Length, virtualInterfaceNames.Length);
|
||||||
|
|
Loading…
Reference in a new issue