Commit f6a32641 authored by Honfika's avatar Honfika

CheckAuthorization fix

parent 095f4e57
...@@ -109,14 +109,9 @@ namespace Titanium.Web.Proxy ...@@ -109,14 +109,9 @@ namespace Titanium.Web.Proxy
excluded = true; excluded = true;
} }
if (!excluded) if (!excluded && await CheckAuthorization(clientStreamWriter, connectRequestHeaders) == false)
{ {
if (await CheckAuthorization(clientStreamWriter, connectRequestHeaders) == false) return;
{
return;
}
httpRemoteUri = new Uri("https://" + httpCmdSplit[1]);
} }
//write back successfull CONNECT response //write back successfull CONNECT response
...@@ -129,6 +124,8 @@ namespace Titanium.Web.Proxy ...@@ -129,6 +124,8 @@ namespace Titanium.Web.Proxy
if (!excluded) if (!excluded)
{ {
httpRemoteUri = new Uri("https://" + httpCmdSplit[1]);
SslStream sslStream = null; SslStream sslStream = null;
try try
......
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