Commit af36ecee authored by justcoding121's avatar justcoding121

Expose both IP & port

parent 5051fd5e
......@@ -41,7 +41,7 @@ namespace Titanium.Web.Proxy.EventArguments
public bool IsHttps => WebSession.Request.RequestUri.Scheme == Uri.UriSchemeHttps;
public IPAddress ClientIpAddress => ((IPEndPoint)Client.Client.RemoteEndPoint).Address;
public EndPoint ClientEndPoint => (IPEndPoint)TcpClient.Client.RemoteEndPoint;
/// <summary>
/// A web session corresponding to a single request/response sequence
......@@ -52,7 +52,7 @@ namespace Titanium.Web.Proxy.EventArguments
/// <summary>
/// Reference to client connection
/// </summary>
internal TcpClient Client { get; set; }
internal TcpClient TcpClient { get; set; }
/// <summary>
......
......@@ -198,7 +198,7 @@ namespace Titanium.Web.Proxy
}
var args = new SessionEventArgs();
args.Client = client;
args.TcpClient = client;
try
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment