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

Can configure to be dual-mode, or plain IPv4/6

This commit is contained in:
CallumDev
2019-06-10 02:28:38 +09:30
parent 1a2301ddbc
commit 85ad100f89
4 changed files with 27 additions and 8 deletions

View File

@@ -303,7 +303,8 @@ namespace Lidgren.Network
{
if (remoteEndPoint == null)
throw new ArgumentNullException("remoteEndPoint");
remoteEndPoint = NetUtility.MapToIPv6(remoteEndPoint);
if(m_configuration.DualStack)
remoteEndPoint = NetUtility.MapToIPv6(remoteEndPoint);
lock (m_connections)
{