Skip to content

Commit

Permalink
Merge pull request #848 from xPaw/endpoint
Browse files Browse the repository at this point in the history
Expose CurrentEndPoint on CMClient
  • Loading branch information
yaakov-h authored May 15, 2020
2 parents 7b86512 + 9e0862b commit 97c8315
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion SteamKit2/SteamKit2/Steam/CMClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,17 @@ public abstract class CMClient : ILogContext
public SmartCMServerList Servers => Configuration.ServerList;

/// <summary>
/// Returns the the local IP of this client.
/// Returns the local IP of this client.
/// </summary>
/// <returns>The local IP.</returns>
public IPAddress? LocalIP => connection?.GetLocalIP();

/// <summary>
/// Returns the current endpoint this client is connected to.
/// </summary>
/// <returns>The current endpoint.</returns>
public EndPoint? CurrentEndPoint => connection?.CurrentEndPoint;

/// <summary>
/// Gets the public IP address of this client. This value is assigned after a logon attempt has succeeded.
/// This value will be <c>null</c> if the client is logged off of Steam.
Expand Down

0 comments on commit 97c8315

Please sign in to comment.