Skip to content

Commit

Permalink
Added KeepAlive log
Browse files Browse the repository at this point in the history
  • Loading branch information
trippyone committed Jun 30, 2024
1 parent 87c7965 commit c6a10a6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Networking/FikaNatPunchServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,13 @@ public void OnNatIntroductionRequest(IPEndPoint localEndPoint, IPEndPoint remote
switch (introductionType)
{
case "server":
if (!_servers.TryGetValue(sessionId, out sPeer))
if (_servers.TryGetValue(sessionId, out sPeer))
{
Console.WriteLine($"KeepAlive {sessionId} ({remoteEndPoint})");
}
else
{
Console.WriteLine($"Added {sessionId} ({remoteEndPoint}) to server list.");
Console.WriteLine($"Added {sessionId} ({remoteEndPoint}) to server list");
}

_servers[sessionId] = new ServerPeer(localEndPoint, remoteEndPoint);
Expand Down

0 comments on commit c6a10a6

Please sign in to comment.