Skip to content

Commit 70ee6a9

Browse files
committed
fix: Relay port reading
1 parent 7ead4e6 commit 70ee6a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MLAPI/Transports/UNET/RelayTransport.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,8 @@ private static NetworkEventType BaseReceive(NetworkEventType @event, int hostId,
304304
for (int i = 0; i < addressBytes.Length; i++)
305305
addressBytes[i] = buffer[i];
306306

307-
ushort remotePort = (ushort)(((ushort)buffer[17]) |
308-
((ushort)buffer[18] << 8));
307+
ushort remotePort = (ushort)(((ushort)buffer[16]) |
308+
((ushort)buffer[17] << 8));
309309

310310
IPEndPoint remoteEndPoint = new IPEndPoint(new IPAddress(addressBytes), remotePort);
311311

0 commit comments

Comments
 (0)