There was an error while loading. Please reload this page.
1 parent 95e472b commit b3feffdCopy full SHA for b3feffd
1 file changed
com.unity.netcode.gameobjects/Runtime/Transports/UTP/UnityTransport.cs
@@ -519,6 +519,14 @@ public NetworkSettings GetDefaultNetworkSettings()
519
sendQueueCapacity: m_MaxPacketQueueSize,
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)
0 commit comments