Skip to content
This repository has been archived by the owner on Sep 5, 2022. It is now read-only.

Commit

Permalink
Added direct connect check on server
Browse files Browse the repository at this point in the history
  • Loading branch information
Derek-R-S committed Apr 7, 2021
1 parent 91aaa6a commit 0a829c5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void JoinRoom(int clientId, string serverId, bool canDirectConnect, string local
int sendJoinPos = 0;
byte[] sendJoinBuffer = _sendBuffers.Rent(500);

if (canDirectConnect && Program.instance.NATConnections.ContainsKey(clientId))
if (canDirectConnect && Program.instance.NATConnections.ContainsKey(clientId) && rooms[i].supportsDirectConnect)
{
sendJoinBuffer.WriteByte(ref sendJoinPos, (byte)OpCodes.DirectConnectIP);

Expand Down

0 comments on commit 0a829c5

Please sign in to comment.