Skip to content

Commit 9295143

Browse files
committed
Fix SetConnectionData ambiguous call
1 parent f86b3ce commit 9295143

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ private bool ParseCommandLineOptionsAddress(out string ipValue)
847847
/// <param name="listenAddress">The address the server is going to listen on.</param>
848848
public void SetConnectionData(string ipv4Address, ushort port, string listenAddress = null)
849849
{
850-
SetConnectionData(ipv4Address, port, listenAddress, false);
850+
SetConnectionData(false, ipv4Address, port, listenAddress);
851851
}
852852

853853
/// <summary>
@@ -857,7 +857,7 @@ public void SetConnectionData(string ipv4Address, ushort port, string listenAddr
857857
/// <param name="port">The remote port to connect to.</param>
858858
/// <param name="listenAddress">The address the server is going to listen on.</param>
859859
/// <param name="forceOverrideCommandLineArgs">When true, -port and -ip command line arguments will be ignored.</param>
860-
public void SetConnectionData(string ipv4Address, ushort port, string listenAddress = null, bool forceOverrideCommandLineArgs = false)
860+
public void SetConnectionData(bool forceOverrideCommandLineArgs, string ipv4Address, ushort port, string listenAddress = null)
861861
{
862862
m_HasForcedConnectionData = forceOverrideCommandLineArgs;
863863
if (!forceOverrideCommandLineArgs && ParseCommandLineOptionsPort(out var commandLinePort))

0 commit comments

Comments
 (0)