optimized

This commit is contained in:
BaronGreenback 2021-02-21 00:42:06 +00:00
parent b03bd7a299
commit cb09096a59

View File

@ -921,7 +921,7 @@ namespace Jellyfin.Networking.Manager
if (config.IgnoreVirtualInterfaces) if (config.IgnoreVirtualInterfaces)
{ {
// each virtual interface name must be pre-pended with the exclusion symbol ! // each virtual interface name must be pre-pended with the exclusion symbol !
var virtualInterfaceNames = config.VirtualInterfaceNames.Split(',').Select(p => '!' + p).ToArray(); var virtualInterfaceNames = config.VirtualInterfaceNames.Split(',').Select(p => "!" + p).ToArray();
if (lanAddresses.Length > 0) if (lanAddresses.Length > 0)
{ {
var newList = new string[lanAddresses.Length + virtualInterfaceNames.Length]; var newList = new string[lanAddresses.Length + virtualInterfaceNames.Length];