Skip to content

Commit

Permalink
Ignore ipv6
Browse files Browse the repository at this point in the history
  • Loading branch information
garrynewman committed Dec 31, 2019
1 parent ec34e5f commit 6e136cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Utility/Sddp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ public void SendMessage( string message )
{
var iPAddress = array[i];
var addressBytes = iPAddress.GetAddressBytes();
if ( addressBytes.Length > 4 ) continue;

var optionValue = (int)addressBytes[0] + ((int)addressBytes[1] << 8) + ((int)addressBytes[2] << 16) + ((int)addressBytes[3] << 24);

SearchSocket.SetSocketOption( SocketOptionLevel.IP, SocketOptionName.MulticastInterface, optionValue );
Expand Down

0 comments on commit 6e136cc

Please sign in to comment.