Remove conversion from IPAddress to string to IPAddress

This commit is contained in:
David
2021-03-23 17:16:10 +01:00
parent 8410a9a266
commit 19e4ef82dd
7 changed files with 28 additions and 15 deletions

View File

@@ -434,7 +434,7 @@ namespace Jellyfin.Api.Helpers
}
}
private bool EnableAdaptiveBitrateStreaming(StreamState state, bool isLiveStream, bool enableAdaptiveBitrateStreaming, string ipAddress)
private bool EnableAdaptiveBitrateStreaming(StreamState state, bool isLiveStream, bool enableAdaptiveBitrateStreaming, IPAddress ipAddress)
{
// Within the local network this will likely do more harm than good.
if (_networkManager.IsInLocalNetwork(ipAddress))