Skip to content
This repository was archived by the owner on Jul 9, 2023. It is now read-only.

Commit af36ece

Browse files
committed
Expose both IP & port
1 parent 5051fd5 commit af36ece

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Titanium.Web.Proxy/EventArguments/SessionEventArgs.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ internal SessionEventArgs()
4141
public bool IsHttps => WebSession.Request.RequestUri.Scheme == Uri.UriSchemeHttps;
4242

4343

44-
public IPAddress ClientIpAddress => ((IPEndPoint)Client.Client.RemoteEndPoint).Address;
44+
public EndPoint ClientEndPoint => (IPEndPoint)TcpClient.Client.RemoteEndPoint;
4545

4646
/// <summary>
4747
/// A web session corresponding to a single request/response sequence
@@ -52,7 +52,7 @@ internal SessionEventArgs()
5252
/// <summary>
5353
/// Reference to client connection
5454
/// </summary>
55-
internal TcpClient Client { get; set; }
55+
internal TcpClient TcpClient { get; set; }
5656

5757

5858
/// <summary>

Titanium.Web.Proxy/RequestHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ private static async Task HandleHttpSessionRequest(TcpClient client, string http
198198
}
199199

200200
var args = new SessionEventArgs();
201-
args.Client = client;
201+
args.TcpClient = client;
202202

203203
try
204204
{

0 commit comments

Comments
 (0)