You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-16 07:06:30 +09:00
Also use GetCachedBroadcastAddress() in RELEASE
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user