From 6533e272e3bedc54430f0c9243e9b684316104bf Mon Sep 17 00:00:00 2001 From: lidgren Date: Tue, 4 Nov 2014 09:04:38 +0000 Subject: [PATCH] Emit debug message for punches sent as part of Nat introduction --- Lidgren.Network/NetNatIntroduction.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lidgren.Network/NetNatIntroduction.cs b/Lidgren.Network/NetNatIntroduction.cs index fea590d..504f398 100644 --- a/Lidgren.Network/NetNatIntroduction.cs +++ b/Lidgren.Network/NetNatIntroduction.cs @@ -64,6 +64,7 @@ namespace Lidgren.Network punch.Write(hostByte); punch.Write(token); m_unsentUnconnectedMessages.Enqueue(new NetTuple(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(remoteExternal, punch)); + LogDebug("NAT punch sent to " + remoteExternal); + } ///