You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-17 15:46:33 +09:00
Fix to rebind same port as previously bound
This commit is contained in:
@@ -132,7 +132,7 @@ namespace Lidgren.Network
|
|||||||
m_socket.SendBufferSize = m_configuration.SendBufferSize;
|
m_socket.SendBufferSize = m_configuration.SendBufferSize;
|
||||||
m_socket.Blocking = false;
|
m_socket.Blocking = false;
|
||||||
|
|
||||||
var ep = (EndPoint)new IPEndPoint(m_configuration.LocalAddress, m_configuration.Port);
|
var ep = (EndPoint)new IPEndPoint(m_configuration.LocalAddress, reBind ? m_listenPort : m_configuration.Port);
|
||||||
m_socket.Bind(ep);
|
m_socket.Bind(ep);
|
||||||
|
|
||||||
try
|
try
|
||||||
|
|||||||
Reference in New Issue
Block a user