Commit b8cefa4c authored by Honfika's avatar Honfika

LocalEndPoint renamed, old names are obsolate

parent 4c6a8f50
......@@ -59,7 +59,7 @@ namespace Titanium.Web.Proxy.EventArguments
ClientStream = clientStream;
HttpClient = new HttpWebClient(connectRequest, request, new Lazy<int>(() => clientStream.Connection.GetProcessId(endPoint)));
LocalEndPoint = endPoint;
ProxyEndPoint = endPoint;
EnableWinAuth = server.EnableWinAuth && isWindowsAuthenticationSupported;
}
......@@ -103,6 +103,9 @@ namespace Titanium.Web.Proxy.EventArguments
/// </summary>
public IPEndPoint ClientRemoteEndPoint => (IPEndPoint)ClientConnection.RemoteEndPoint;
[Obsolete("Use ClientRemoteEndPoint instead.")]
public IPEndPoint ClientEndPoint => ClientRemoteEndPoint;
/// <summary>
/// The web client used to communicate with server for this session.
/// </summary>
......@@ -119,12 +122,15 @@ namespace Titanium.Web.Proxy.EventArguments
/// <summary>
/// Local endpoint via which we make the request.
/// </summary>
public ProxyEndPoint LocalEndPoint { get; }
public ProxyEndPoint ProxyEndPoint { get; }
[Obsolete("Use ProxyEndPoint instead.")]
public ProxyEndPoint LocalEndPoint => ProxyEndPoint;
/// <summary>
/// Is this a transparent endpoint?
/// </summary>
public bool IsTransparent => LocalEndPoint is TransparentProxyEndPoint;
public bool IsTransparent => ProxyEndPoint is TransparentProxyEndPoint;
/// <summary>
/// The last exception that happened.
......
......@@ -175,7 +175,7 @@ namespace Titanium.Web.Proxy
// Add custom div to body to clarify that the proxy (not the client browser) failed authentication
string authErrorMessage =
"<div class=\"inserted-by-proxy\"><h2>NTLM authentication through Titanium.Web.Proxy (" +
args.ClientConnection.LocalEndPoint +
args.ClientLocalEndPoint +
") failed. Please check credentials.</h2></div>";
string originalErrorMessage =
"<div class=\"inserted-by-proxy\"><h3>Response from remote web server below.</h3></div><br/>";
......
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