Skip to content

Commit f6db03f

Browse files
fix: Error when using 'Use Encryption' with secure Relay (#2289)
* fix: Error when using 'Use Encryption' with secure Relay * Add PR number to CHANGELOG entry
1 parent 083bb63 commit f6db03f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

com.unity.netcode.gameobjects/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Additional documentation and release notes are available at [Multiplayer Documen
1515
### Fixed
1616

1717
- Fixed issue where the host would receive more than one event completed notification when loading or unloading a scene only when no clients were connected. (#2292)
18+
- Fixed an issue in `UnityTransport` where an error would be logged if the 'Use Encryption' flag was enabled with a Relay configuration that used a secure protocol. (#2289)
1819
- Fixed issue where in-scene placed `NetworkObjects` were not honoring the `AutoObjectParentSync` property. (#2281)
1920
- Fixed the issue where `NetworkManager.OnClientConnectedCallback` was being invoked before in-scene placed `NetworkObject`s had been spawned when starting `NetworkManager` as a host. (#2277)
2021
- Creating a `FastBufferReader` with `Allocator.None` will not result in extra memory being allocated for the buffer (since it's owned externally in that scenario). (#2265)

com.unity.netcode.gameobjects/Runtime/Transports/UTP/UnityTransport.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1441,7 +1441,7 @@ public void CreateDriver(UnityTransport transport, out NetworkDriver driver,
14411441
{
14421442
if (m_ProtocolType == ProtocolType.RelayUnityTransport)
14431443
{
1444-
if (m_RelayServerData.IsSecure != 0)
1444+
if (m_RelayServerData.IsSecure == 0)
14451445
{
14461446
// log an error because we have mismatched configuration
14471447
Debug.LogError("Mismatched security configuration, between Relay and local NetworkManager settings");

0 commit comments

Comments
 (0)