diff options
| author | BaronGreenback <jimcartlidge@yahoo.co.uk> | 2021-02-20 22:46:16 +0000 |
|---|---|---|
| committer | BaronGreenback <jimcartlidge@yahoo.co.uk> | 2021-02-20 22:46:16 +0000 |
| commit | 605bd80251368a88f7ffc0d0442bd52a7575329a (patch) | |
| tree | eec75728c37f47595aecfff24ec986d483d18066 /Jellyfin.Networking | |
| parent | 7acee4070e425b9060faa893d61a5e2d2f387bfc (diff) | |
Fix for ignoreVirtualInterfaces
Diffstat (limited to 'Jellyfin.Networking')
| -rw-r--r-- | Jellyfin.Networking/Manager/NetworkManager.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Jellyfin.Networking/Manager/NetworkManager.cs b/Jellyfin.Networking/Manager/NetworkManager.cs index 60b899519..c08406003 100644 --- a/Jellyfin.Networking/Manager/NetworkManager.cs +++ b/Jellyfin.Networking/Manager/NetworkManager.cs @@ -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. 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]; Array.Copy(lanAddresses, newList, lanAddresses.Length); Array.Copy(virtualInterfaceNames, 0, newList, lanAddresses.Length, virtualInterfaceNames.Length); |
