There was an error while loading. Please reload this page.
1 parent 981c809 commit d3da75cCopy full SHA for d3da75c
1 file changed
com.unity.netcode.gameobjects/Runtime/Transports/UTP/UnityTransport.cs
@@ -520,6 +520,14 @@ public NetworkSettings GetDefaultNetworkSettings()
520
receiveQueueCapacity: m_MaxPacketQueueSize,
521
heartbeatTimeoutMS: m_HeartbeatTimeoutMS);
522
523
+ // Disable PMTU discovery if using DA, leave it at its default otherwise.
524
+ if (OnCurrentTopology() == NetworkTopologyTypes.DistributedAuthority)
525
+ {
526
+ var config = settings.GetNetworkConfigParameters();
527
+ config.performPathMtuDiscovery = false;
528
+ settings.AddRawParameterStruct(ref config);
529
+ }
530
+
531
// Configure Relay if in use.
532
if (m_ProtocolType == ProtocolType.RelayUnityTransport)
533
{
0 commit comments