mirror of
https://github.com/jellyfin/jellyfin
synced 2024-09-16 06:20:38 +00:00
Update LanFilteringMiddleware.cs
This commit is contained in:
parent
b04aed2f58
commit
40464a6fdd
|
@ -43,18 +43,6 @@ namespace Jellyfin.Server.Middleware
|
||||||
}
|
}
|
||||||
|
|
||||||
await _next(httpContext).ConfigureAwait(false);
|
await _next(httpContext).ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static string NormalizeConfiguredLocalAddress(string address)
|
|
||||||
{
|
|
||||||
var add = address.AsSpan().Trim('/');
|
|
||||||
int index = add.IndexOf('/');
|
|
||||||
if (index != -1)
|
|
||||||
{
|
|
||||||
add = add.Slice(index + 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
return add.TrimStart('/').ToString();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue