mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
renamed method
This commit is contained in:
parent
b5c6e5fb97
commit
039a4fb22d
@ -694,7 +694,7 @@ namespace Jellyfin.Networking.Manager
|
|||||||
/// <param name="token">String to check.</param>
|
/// <param name="token">String to check.</param>
|
||||||
/// <param name="index">Interface index numbers that match.</param>
|
/// <param name="index">Interface index numbers that match.</param>
|
||||||
/// <returns><c>true</c> if an interface name matches the token, <c>False</c> otherwise.</returns>
|
/// <returns><c>true</c> if an interface name matches the token, <c>False</c> otherwise.</returns>
|
||||||
private bool TryIsInterface(string token, [MaybeNullWhen(false)] out List<int> index)
|
private bool TryGetInterfaces(string token, [NotNullWhen(true)] out List<int>? index)
|
||||||
{
|
{
|
||||||
index = null;
|
index = null;
|
||||||
|
|
||||||
@ -731,7 +731,7 @@ namespace Jellyfin.Networking.Manager
|
|||||||
{
|
{
|
||||||
// Is it the name of an interface (windows) eg, Wireless LAN adapter Wireless Network Connection 1.
|
// Is it the name of an interface (windows) eg, Wireless LAN adapter Wireless Network Connection 1.
|
||||||
// Null check required here for automated testing.
|
// Null check required here for automated testing.
|
||||||
if (TryIsInterface(token, out var index))
|
if (TryGetInterfaces(token, out var index))
|
||||||
{
|
{
|
||||||
_logger.LogInformation("Interface {Token} used in settings. Using its interface addresses.", token);
|
_logger.LogInformation("Interface {Token} used in settings. Using its interface addresses.", token);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user