Parcourir la source

Remove redundant cast

Stepan Goremykin il y a 1 an
Parent
commit
8925390ad4
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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);