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
Implement IPv6 Dual Mode
This commit is contained in:
@@ -121,7 +121,7 @@ namespace Lidgren.Network
|
||||
m_connections = new List<NetConnection>();
|
||||
m_connectionLookup = new Dictionary<NetEndPoint, NetConnection>();
|
||||
m_handshakes = new Dictionary<NetEndPoint, NetConnection>();
|
||||
m_senderRemote = (EndPoint)new NetEndPoint(IPAddress.Any, 0);
|
||||
m_senderRemote = (EndPoint)new NetEndPoint(IPAddress.IPv6Any, 0);
|
||||
m_status = NetPeerStatus.NotRunning;
|
||||
m_receivedFragmentGroups = new Dictionary<NetConnection, Dictionary<int, ReceivedFragmentGroup>>();
|
||||
}
|
||||
@@ -303,6 +303,7 @@ namespace Lidgren.Network
|
||||
{
|
||||
if (remoteEndPoint == null)
|
||||
throw new ArgumentNullException("remoteEndPoint");
|
||||
remoteEndPoint = NetUtility.MapToIPv6(remoteEndPoint);
|
||||
|
||||
lock (m_connections)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user