Ver Fonte

Remove redundant cast

Stepan Goremykin há 1 ano atrás
pai
commit
8925390ad4
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      Emby.Server.Implementations/Net/SocketFactory.cs

+ 1 - 1
Emby.Server.Implementations/Net/SocketFactory.cs

@@ -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);