Skip to content

Commit

Permalink
Merge pull request #572 from mitsh/main
Browse files Browse the repository at this point in the history
LNL Multiple Interface problem fixed
  • Loading branch information
FirstGearGames authored Jan 18, 2024
2 parents c738380 + 1e177f6 commit 8bb58d1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ private bool BindSocket(Socket socket, IPEndPoint ep)
{
socket.ExclusiveAddressUse = !ReuseAddress;
socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, ReuseAddress);
socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.DontRoute, DontRoute);
}
catch
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,13 @@ private struct IncomingData
/// </summary>
public bool ReuseAddress = false;

/// <summary>
/// UDP Only Option. Enables socket option "DontRoute" for specific purposes.
/// Normally IP sockets send packets of data through routers and gateways until they reach the final destination.
/// If the DontRoute flag is set to True, then data will be delivered on the local subnet only.
/// </summary>
public bool DontRoute = false;

/// <summary>
/// Statistics of all connections
/// </summary>
Expand Down

0 comments on commit 8bb58d1

Please sign in to comment.