Commit c094e73e authored by ilushka85's avatar ilushka85

cleanup old code

parent 30501546
......@@ -18,10 +18,10 @@ namespace Titanium.Web.Proxy
/// </summary>
public partial class ProxyServer : IDisposable
{
public ConcurrentQueue<ExternalProxy> CustomUpStreamHttpProxies{ get; set; }
public Func<ConcurrentQueue<ExternalProxy>, ExternalProxy> GetCustomUpStreamHttpProxyFunc = null;
public ConcurrentQueue<ExternalProxy> CustomUpStreamHttpProxies { get; set; }
public Func<ExternalProxy> GetCustomUpStreamHttpProxyFunc = null;
public ConcurrentQueue<ExternalProxy> CustomUpStreamHttpsProxies { get; set; }
public Func<ConcurrentQueue<ExternalProxy>, ExternalProxy> GetCustomUpStreamHttpsProxyFunc = null;
public Func<ExternalProxy> GetCustomUpStreamHttpsProxyFunc = null;
/// <summary>
......@@ -399,11 +399,11 @@ namespace Titanium.Web.Proxy
{
ExternalProxy externalHttpProxy = null;
if (GetCustomUpStreamHttpProxyFunc != null)
externalHttpProxy = GetCustomUpStreamHttpProxyFunc(CustomUpStreamHttpProxies);
externalHttpProxy = GetCustomUpStreamHttpProxyFunc();
ExternalProxy externalHttpsProxy = null;
if (GetCustomUpStreamHttpsProxyFunc != null)
externalHttpsProxy = GetCustomUpStreamHttpsProxyFunc(CustomUpStreamHttpsProxies);
externalHttpsProxy = GetCustomUpStreamHttpsProxyFunc();
await HandleClient(endPoint as ExplicitProxyEndPoint, tcpClient, externalHttpProxy, externalHttpsProxy);
}
......
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