From 513d4d6da16c36ed964cf5bc4d7d963fe4ee126a Mon Sep 17 00:00:00 2001 From: Michael Lidgren Date: Fri, 8 May 2015 10:49:20 +0200 Subject: [PATCH] Also use GetCachedBroadcastAddress() in RELEASE --- Lidgren.Network/NetPeer.LatencySimulation.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lidgren.Network/NetPeer.LatencySimulation.cs b/Lidgren.Network/NetPeer.LatencySimulation.cs index cac8d50..00844c8 100644 --- a/Lidgren.Network/NetPeer.LatencySimulation.cs +++ b/Lidgren.Network/NetPeer.LatencySimulation.cs @@ -263,7 +263,7 @@ namespace Lidgren.Network try { // TODO: refactor this check outta here - if (target.Address == NetUtility.GetBroadcastAddress()) + if (target.Address == NetUtility.GetCachedBroadcastAddress()) m_socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.Broadcast, true); int bytesSent = m_socket.SendTo(m_sendBuffer, 0, numBytes, SocketFlags.None, target);