Commit 4b9f4acb authored by ilushka85's avatar ilushka85

fix case of reusing connection and setting the upstream proxies used

parent 79a4df93
...@@ -460,6 +460,18 @@ namespace Titanium.Web.Proxy ...@@ -460,6 +460,18 @@ namespace Titanium.Web.Proxy
new LocalCertificateSelectionCallback(SelectClientCertificate), new LocalCertificateSelectionCallback(SelectClientCertificate),
customUpStreamHttpProxy ?? UpStreamHttpProxy, customUpStreamHttpsProxy ?? UpStreamHttpsProxy, clientStream); customUpStreamHttpProxy ?? UpStreamHttpProxy, customUpStreamHttpsProxy ?? UpStreamHttpsProxy, clientStream);
} }
else
{
if(connection.IsHttps)
{
args.CustomUpStreamHttpsProxyUsed = connection.UpStreamHttpsProxy;
}
else
{
args.CustomUpStreamHttpProxyUsed = connection.UpStreamHttpProxy;
}
}
args.WebSession.Request.RequestLocked = true; args.WebSession.Request.RequestLocked = true;
......
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