Commit af36ecee authored by justcoding121's avatar justcoding121

Expose both IP & port

parent 5051fd5e
...@@ -41,7 +41,7 @@ namespace Titanium.Web.Proxy.EventArguments ...@@ -41,7 +41,7 @@ namespace Titanium.Web.Proxy.EventArguments
public bool IsHttps => WebSession.Request.RequestUri.Scheme == Uri.UriSchemeHttps; 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> /// <summary>
/// A web session corresponding to a single request/response sequence /// A web session corresponding to a single request/response sequence
...@@ -52,7 +52,7 @@ namespace Titanium.Web.Proxy.EventArguments ...@@ -52,7 +52,7 @@ namespace Titanium.Web.Proxy.EventArguments
/// <summary> /// <summary>
/// Reference to client connection /// Reference to client connection
/// </summary> /// </summary>
internal TcpClient Client { get; set; } internal TcpClient TcpClient { get; set; }
/// <summary> /// <summary>
......
...@@ -198,7 +198,7 @@ namespace Titanium.Web.Proxy ...@@ -198,7 +198,7 @@ namespace Titanium.Web.Proxy
} }
var args = new SessionEventArgs(); var args = new SessionEventArgs();
args.Client = client; args.TcpClient = client;
try 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