aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaronGreenback <jimcartlidge@yahoo.co.uk>2021-02-24 11:40:50 +0000
committerBaronGreenback <jimcartlidge@yahoo.co.uk>2021-02-24 11:42:09 +0000
commit039a4fb22d52d840019ecdb39c62bcd7f76e3b84 (patch)
tree15ee215a48de5bda3948d29254ba2e3d131af7b5
parentb5c6e5fb97d06533583f8273227f9215906c2ed1 (diff)
renamed method
-rw-r--r--Jellyfin.Networking/Manager/NetworkManager.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Networking/Manager/NetworkManager.cs b/Jellyfin.Networking/Manager/NetworkManager.cs
index 3f209277f..1d5eb1826 100644
--- a/Jellyfin.Networking/Manager/NetworkManager.cs
+++ b/Jellyfin.Networking/Manager/NetworkManager.cs
@@ -694,7 +694,7 @@ namespace Jellyfin.Networking.Manager
/// <param name="token">String to check.</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>
- private bool TryIsInterface(string token, [MaybeNullWhen(false)] out List<int> index)
+ private bool TryGetInterfaces(string token, [NotNullWhen(true)] out List<int>? index)
{
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.
// 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);