Remove redundant cast

This commit is contained in:
Stepan Goremykin 2023-10-07 23:42:15 +02:00
parent a3d3ec7e0b
commit 8925390ad4

View File

@ -83,7 +83,7 @@ namespace Emby.Server.Implementations.Net
try
{
var interfaceIndex = bindInterface.Index;
var interfaceIndexSwapped = (int)IPAddress.HostToNetworkOrder(interfaceIndex);
var interfaceIndexSwapped = IPAddress.HostToNetworkOrder(interfaceIndex);
socket.MulticastLoopback = false;
socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true);