Skip to content

Commit fa53010

Browse files
committed
fix: Fixes WebGL UNET Transport AddHost bug (Unity Bug)
1 parent 7ae9438 commit fa53010

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

MLAPI/Transports/UNET/RelayTransport.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
1+
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
22
using System;
33
using System.Collections.Generic;
44
using System.Net;
@@ -74,15 +74,15 @@ public static int ConnectEndPoint(int hostId, EndPoint endPoint, int exceptionCo
7474

7575
public static int AddHost(HostTopology topology, bool createServer)
7676
{
77-
if (!Enabled) return NetworkTransport.AddHost(topology);
77+
if (!Enabled) return NetworkTransport.AddHost(topology, 0, null);
7878

7979
isClient = !createServer;
8080

8181
defaultChannelId = topology.DefaultConfig.AddChannel(QosType.ReliableSequenced);
8282

8383
SetChannelsFromTopology(topology);
8484

85-
int ret = NetworkTransport.AddHost(topology);
85+
int ret = NetworkTransport.AddHost(topology, 0, null);
8686

8787
if (createServer) relayConnectionId = NetworkTransport.Connect(ret, RelayAddress, RelayPort, 0, out byte b);
8888

0 commit comments

Comments
 (0)