Skip to content

Commit 2551c15

Browse files
Make ConnectionAddressData.ServerEndPoint obsolete
1 parent 00684be commit 2551c15

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,12 @@ private void InvalidEndpointError()
253253
/// <summary>
254254
/// Endpoint (IP address and port) clients will connect to.
255255
/// </summary>
256+
/// <remarks>
257+
/// If a DNS hostname was set as the address, this will return an invalid endpoint. This
258+
/// is still handled correctly by NGO, but for this reason usage of this property is
259+
/// discouraged.
260+
/// </remarks>
261+
[Obsolete("Use NetworkEndpoint.Parse on the Address field instead.")]
256262
public NetworkEndpoint ServerEndPoint
257263
{
258264
get

0 commit comments

Comments
 (0)