Skip to content

Commit

Permalink
Expose CurrentEndPoint on CMClient
Browse files Browse the repository at this point in the history
Fixes #775
Fixes #487
  • Loading branch information
xPaw committed May 14, 2020
1 parent c1261ae commit 9e0862b
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 9e0862b

Please sign in to comment.