diff --git a/com.unity.netcode.gameobjects/CHANGELOG.md b/com.unity.netcode.gameobjects/CHANGELOG.md index 8ea994050d..1548a84da8 100644 --- a/com.unity.netcode.gameobjects/CHANGELOG.md +++ b/com.unity.netcode.gameobjects/CHANGELOG.md @@ -11,10 +11,13 @@ Additional documentation and release notes are available at [Multiplayer Documen ### Added ### Changed + - The default listen address of `UnityTransport` is now 0.0.0.0. (#2307) ### Fixed +- Fixed an issue in `UnityTransport` where an exception would be thrown if starting a Relay host/server on WebGL. This exception should only be thrown if using direct connections (where WebGL can't act as a host/server). (#2321) + ## [1.2.0] - 2022-11-21 ### Added diff --git a/com.unity.netcode.gameobjects/Runtime/Transports/UTP/UnityTransport.cs b/com.unity.netcode.gameobjects/Runtime/Transports/UTP/UnityTransport.cs index ef30755eb8..0ccb0a2218 100644 --- a/com.unity.netcode.gameobjects/Runtime/Transports/UTP/UnityTransport.cs +++ b/com.unity.netcode.gameobjects/Runtime/Transports/UTP/UnityTransport.cs @@ -1471,7 +1471,7 @@ public void CreateDriver(UnityTransport transport, out NetworkDriver driver, heartbeatTimeoutMS: transport.m_HeartbeatTimeoutMS); #if UNITY_WEBGL && !UNITY_EDITOR - if (NetworkManager.IsServer) + if (NetworkManager.IsServer && m_ProtocolType != ProtocolType.RelayUnityTransport) { throw new Exception("WebGL as a server is not supported by Unity Transport, outside the Editor."); }