mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Update NetworkManager.cs
Changed split character
This commit is contained in:
parent
8044f1f72f
commit
90d72d6628
@ -387,7 +387,7 @@ namespace Jellyfin.Networking.Manager
|
|||||||
// Get the first LAN interface address that isn't a loopback.
|
// Get the first LAN interface address that isn't a loopback.
|
||||||
var interfaces = CreateCollection(_interfaceAddresses
|
var interfaces = CreateCollection(_interfaceAddresses
|
||||||
.Exclude(_bindExclusions)
|
.Exclude(_bindExclusions)
|
||||||
.Where(p => IsInLocalNetwork(p))
|
.Where(IsInLocalNetwork(p))
|
||||||
.OrderBy(p => p.Tag));
|
.OrderBy(p => p.Tag));
|
||||||
|
|
||||||
if (interfaces.Count > 0)
|
if (interfaces.Count > 0)
|
||||||
@ -591,7 +591,7 @@ namespace Jellyfin.Networking.Manager
|
|||||||
else // Used in testing only.
|
else // Used in testing only.
|
||||||
{
|
{
|
||||||
// Format is <IPAddress>,<Index>,<Name>: <next interface>. Set index to -ve to simulate a gateway.
|
// Format is <IPAddress>,<Index>,<Name>: <next interface>. Set index to -ve to simulate a gateway.
|
||||||
var interfaceList = MockNetworkSettings.Split(':');
|
var interfaceList = MockNetworkSettings.Split('|');
|
||||||
foreach (var details in interfaceList)
|
foreach (var details in interfaceList)
|
||||||
{
|
{
|
||||||
var parts = details.Split(',');
|
var parts = details.Split(',');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user