1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-16 15:16:33 +09:00

Also use GetCachedBroadcastAddress() in RELEASE

This commit is contained in:
Michael Lidgren
2015-05-08 10:49:20 +02:00
parent 47ffa3b428
commit 513d4d6da1

View File

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