Added direct connect check on server
This commit is contained in:
parent
91aaa6ae2f
commit
0a829c5646
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ namespace LightReflectiveMirror
|
||||||
int sendJoinPos = 0;
|
int sendJoinPos = 0;
|
||||||
byte[] sendJoinBuffer = _sendBuffers.Rent(500);
|
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);
|
sendJoinBuffer.WriteByte(ref sendJoinPos, (byte)OpCodes.DirectConnectIP);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue