Skip to content

Commit f86b3ce

Browse files
committed
Avoid changing public method layout
1 parent 168fd01 commit f86b3ce

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,18 @@ private bool ParseCommandLineOptionsAddress(out string ipValue)
845845
/// <param name="ipv4Address">The remote IP address (despite the name, can be an IPv6 address or a domain name).</param>
846846
/// <param name="port">The remote port to connect to.</param>
847847
/// <param name="listenAddress">The address the server is going to listen on.</param>
848-
/// <param name="forceOverrideCommandLineArgs">When true, any command line arguments will be ignored.</param>
848+
public void SetConnectionData(string ipv4Address, ushort port, string listenAddress = null)
849+
{
850+
SetConnectionData(ipv4Address, port, listenAddress, false);
851+
}
852+
853+
/// <summary>
854+
/// Sets IP and Port information. This will be ignored if using the Unity Relay and you should call <see cref="SetRelayServerData"/>
855+
/// </summary>
856+
/// <param name="ipv4Address">The remote IP address (despite the name, can be an IPv6 address or a domain name).</param>
857+
/// <param name="port">The remote port to connect to.</param>
858+
/// <param name="listenAddress">The address the server is going to listen on.</param>
859+
/// <param name="forceOverrideCommandLineArgs">When true, -port and -ip command line arguments will be ignored.</param>
849860
public void SetConnectionData(string ipv4Address, ushort port, string listenAddress = null, bool forceOverrideCommandLineArgs = false)
850861
{
851862
m_HasForcedConnectionData = forceOverrideCommandLineArgs;

0 commit comments

Comments
 (0)