You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-17 23:56:30 +09:00
Also use GetCachedBroadcastAddress() in RELEASE
This commit is contained in:
@@ -263,7 +263,7 @@ namespace Lidgren.Network
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
// TODO: refactor this check outta here
|
// TODO: refactor this check outta here
|
||||||
if (target.Address == NetUtility.GetBroadcastAddress())
|
if (target.Address == NetUtility.GetCachedBroadcastAddress())
|
||||||
m_socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.Broadcast, true);
|
m_socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.Broadcast, true);
|
||||||
|
|
||||||
int bytesSent = m_socket.SendTo(m_sendBuffer, 0, numBytes, SocketFlags.None, target);
|
int bytesSent = m_socket.SendTo(m_sendBuffer, 0, numBytes, SocketFlags.None, target);
|
||||||
|
|||||||
Reference in New Issue
Block a user