From 61b09add87d70efe5d7cbdadf145c2e5497aa24f Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Wed, 26 Feb 2020 15:28:40 +0000 Subject: [PATCH] ConnectionInfo exposes NetAddress, NetIdentity --- Facepunch.Steamworks/Networking/ConnectionInfo.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Facepunch.Steamworks/Networking/ConnectionInfo.cs b/Facepunch.Steamworks/Networking/ConnectionInfo.cs index dccbf24..49f7116 100644 --- a/Facepunch.Steamworks/Networking/ConnectionInfo.cs +++ b/Facepunch.Steamworks/Networking/ConnectionInfo.cs @@ -27,10 +27,15 @@ namespace Steamworks.Data /// public ConnectionState State => state; + /// + /// Remote address. Might be all 0's if we don't know it, or if this is N/A. + /// + public NetAddress Address => address; + /// /// Who is on the other end? Depending on the connection type and phase of the connection, we might not know /// - public SteamId SteamId => identity.steamID; + public NetIdentity Identity => address; /// /// Basic cause of the connection termination or problem.