1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-16 07:06:30 +09:00

Emit debug message for punches sent as part of Nat introduction

This commit is contained in:
lidgren
2014-11-04 09:04:38 +00:00
parent 543d677411
commit 6533e272e3

View File

@@ -64,6 +64,7 @@ namespace Lidgren.Network
punch.Write(hostByte);
punch.Write(token);
m_unsentUnconnectedMessages.Enqueue(new NetTuple<IPEndPoint, NetOutgoingMessage>(remoteInternal, punch));
LogDebug("NAT punch sent to " + remoteInternal);
// send external punch
punch = CreateMessage(1);
@@ -71,6 +72,8 @@ namespace Lidgren.Network
punch.Write(hostByte);
punch.Write(token);
m_unsentUnconnectedMessages.Enqueue(new NetTuple<IPEndPoint, NetOutgoingMessage>(remoteExternal, punch));
LogDebug("NAT punch sent to " + remoteExternal);
}
/// <summary>