Commit 7eea65ab authored by justcoding121's avatar justcoding121

#408 rename BlockConnect to DenyConnect

parent 436de2bf
...@@ -8,7 +8,10 @@ namespace Titanium.Web.Proxy.EventArguments ...@@ -8,7 +8,10 @@ namespace Titanium.Web.Proxy.EventArguments
{ {
public bool DecryptSsl { get; set; } = true; public bool DecryptSsl { get; set; } = true;
public bool BlockConnect { get; set; } /// <summary>
/// Denies the connect request with a Forbidden status
/// </summary>
public bool DenyConnect { get; set; }
public bool IsHttpsConnect { get; internal set; } public bool IsHttpsConnect { get; internal set; }
......
...@@ -81,7 +81,7 @@ namespace Titanium.Web.Proxy ...@@ -81,7 +81,7 @@ namespace Titanium.Web.Proxy
//filter out excluded host names //filter out excluded host names
bool decryptSsl = endPoint.DecryptSsl && connectArgs.DecryptSsl; bool decryptSsl = endPoint.DecryptSsl && connectArgs.DecryptSsl;
if (connectArgs.BlockConnect) if (connectArgs.DenyConnect)
{ {
if (connectArgs.WebSession.Response.StatusCode == 0) if (connectArgs.WebSession.Response.StatusCode == 0)
{ {
......
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