mirror of
https://github.com/Kaveinator/NetickProForUnity.git
synced 2025-10-26 09:49:06 -07:00
Fix ConnectionRequest reported user array length
This commit is contained in:
@@ -120,8 +120,9 @@ namespace Netick.Transport
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
request.Data.GetBytes(_connectionBytes, 0, request.Data.AvailableBytes);
|
int len = request.Data.AvailableBytes;
|
||||||
bool accepted = NetworkPeer.OnConnectRequest(_connectionBytes, request.Data.AvailableBytes, request.RemoteEndPoint.ToNetickEndPoint());
|
request.Data.GetBytes(_connectionBytes, 0, len);
|
||||||
|
bool accepted = NetworkPeer.OnConnectRequest(_connectionBytes, len, request.RemoteEndPoint.ToNetickEndPoint());
|
||||||
|
|
||||||
if (accepted)
|
if (accepted)
|
||||||
request.Accept();
|
request.Accept();
|
||||||
|
|||||||
Reference in New Issue
Block a user