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

Commit 4640ea3

Browse files
Merge pull request #331 from justcoding121/develop
Beta 3.0.171+ review
2 parents 250a081 + bfb66f7 commit 4640ea3

File tree

13 files changed

+80
-331
lines changed

13 files changed

+80
-331
lines changed

Examples/Titanium.Web.Proxy.Examples.Wpf/MainWindow.xaml.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
using Titanium.Web.Proxy.Helpers;
1212
using Titanium.Web.Proxy.Http;
1313
using Titanium.Web.Proxy.Models;
14+
using Titanium.Web.Proxy.Network;
1415

1516
namespace Titanium.Web.Proxy.Examples.Wpf
1617
{
@@ -62,7 +63,9 @@ public int ServerConnectionCount
6263
public MainWindow()
6364
{
6465
proxyServer = new ProxyServer();
66+
//proxyServer.CertificateEngine = CertificateEngine.BouncyCastle;
6567
proxyServer.TrustRootCertificate = true;
68+
proxyServer.CertificateManager.TrustRootCertificateAsAdministrator();
6669
proxyServer.ForwardToUpstreamGateway = true;
6770

6871
var explicitEndPoint = new ExplicitProxyEndPoint(IPAddress.Any, 8000, true)

Titanium.Web.Proxy/EventArguments/SessionEventArgs.cs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,9 @@ public bool ReRequest
8282
public HttpWebClient WebSession { get; }
8383

8484
/// <summary>
85-
/// Are we using a custom upstream HTTP proxy?
85+
/// Are we using a custom upstream HTTP(S) proxy?
8686
/// </summary>
87-
public ExternalProxy CustomUpStreamHttpProxyUsed { get; internal set; }
88-
89-
/// <summary>
90-
/// Are we using a custom upstream HTTPS proxy?
91-
/// </summary>
92-
public ExternalProxy CustomUpStreamHttpsProxyUsed { get; internal set; }
87+
public ExternalProxy CustomUpStreamProxyUsed { get; internal set; }
9388

9489
public event EventHandler<DataEventArgs> DataSent;
9590

@@ -519,8 +514,7 @@ public async Task Respond(Response response)
519514
public void Dispose()
520515
{
521516
httpResponseHandler = null;
522-
CustomUpStreamHttpProxyUsed = null;
523-
CustomUpStreamHttpsProxyUsed = null;
517+
CustomUpStreamProxyUsed = null;
524518

525519
WebSession.FinishSession();
526520
}

Titanium.Web.Proxy/Http/HttpWebClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ internal async Task SendRequest(bool enable100ContinueBehaviour)
8787
using (var ms = new MemoryStream())
8888
using (var writer = new HttpRequestWriter(ms, bufferSize))
8989
{
90-
var upstreamProxy = ServerConnection.UpStreamHttpProxy;
90+
var upstreamProxy = ServerConnection.UpStreamProxy;
9191

9292
bool useUpstreamProxy = upstreamProxy != null && ServerConnection.IsHttps == false;
9393

Titanium.Web.Proxy/Network/Certificate/BCCertificateMaker.NetStandard.cs

Lines changed: 0 additions & 251 deletions
This file was deleted.

0 commit comments

Comments
 (0)