Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Titanium-Web-Proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Titanium-Web-Proxy
Commits
56c835cb
Commit
56c835cb
authored
Apr 24, 2019
by
Honfika
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typo fix, http2 enabled flag added
parent
6e3ae006
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
ExplicitClientHandler.cs
src/Titanium.Web.Proxy/ExplicitClientHandler.cs
+3
-3
ExplicitProxyEndPoint.cs
src/Titanium.Web.Proxy/Models/ExplicitProxyEndPoint.cs
+1
-1
ProxyServer.cs
src/Titanium.Web.Proxy/ProxyServer.cs
+6
-0
No files found.
src/Titanium.Web.Proxy/ExplicitClientHandler.cs
View file @
56c835cb
...
@@ -103,7 +103,7 @@ namespace Titanium.Web.Proxy
...
@@ -103,7 +103,7 @@ namespace Titanium.Web.Proxy
if
(
await
checkAuthorization
(
connectArgs
)
==
false
)
if
(
await
checkAuthorization
(
connectArgs
)
==
false
)
{
{
await
endPoint
.
InvokeBeforeTunne
ct
ConnectResponse
(
this
,
connectArgs
,
ExceptionFunc
);
await
endPoint
.
InvokeBeforeTunne
l
ConnectResponse
(
this
,
connectArgs
,
ExceptionFunc
);
// send the response
// send the response
await
clientStreamWriter
.
WriteResponseAsync
(
connectArgs
.
HttpClient
.
Response
,
await
clientStreamWriter
.
WriteResponseAsync
(
connectArgs
.
HttpClient
.
Response
,
...
@@ -129,7 +129,7 @@ namespace Titanium.Web.Proxy
...
@@ -129,7 +129,7 @@ namespace Titanium.Web.Proxy
connectRequest
.
ClientHelloInfo
=
clientHelloInfo
;
connectRequest
.
ClientHelloInfo
=
clientHelloInfo
;
}
}
await
endPoint
.
InvokeBeforeTunne
ct
ConnectResponse
(
this
,
connectArgs
,
ExceptionFunc
,
isClientHello
);
await
endPoint
.
InvokeBeforeTunne
l
ConnectResponse
(
this
,
connectArgs
,
ExceptionFunc
,
isClientHello
);
if
(
decryptSsl
&&
isClientHello
)
if
(
decryptSsl
&&
isClientHello
)
{
{
...
@@ -183,7 +183,7 @@ namespace Titanium.Web.Proxy
...
@@ -183,7 +183,7 @@ namespace Titanium.Web.Proxy
// Successfully managed to authenticate the client using the fake certificate
// Successfully managed to authenticate the client using the fake certificate
var
options
=
new
SslServerAuthenticationOptions
();
var
options
=
new
SslServerAuthenticationOptions
();
if
(
http2Supported
)
if
(
EnableHttp2
&&
http2Supported
)
{
{
options
.
ApplicationProtocols
=
clientHelloInfo
.
GetAlpn
();
options
.
ApplicationProtocols
=
clientHelloInfo
.
GetAlpn
();
if
(
options
.
ApplicationProtocols
==
null
||
options
.
ApplicationProtocols
.
Count
==
0
)
if
(
options
.
ApplicationProtocols
==
null
||
options
.
ApplicationProtocols
.
Count
==
0
)
...
...
src/Titanium.Web.Proxy/Models/ExplicitProxyEndPoint.cs
View file @
56c835cb
...
@@ -50,7 +50,7 @@ namespace Titanium.Web.Proxy.Models
...
@@ -50,7 +50,7 @@ namespace Titanium.Web.Proxy.Models
}
}
}
}
internal
async
Task
InvokeBeforeTunne
ct
ConnectResponse
(
ProxyServer
proxyServer
,
internal
async
Task
InvokeBeforeTunne
l
ConnectResponse
(
ProxyServer
proxyServer
,
TunnelConnectSessionEventArgs
connectArgs
,
ExceptionHandler
exceptionFunc
,
bool
isClientHello
=
false
)
TunnelConnectSessionEventArgs
connectArgs
,
ExceptionHandler
exceptionFunc
,
bool
isClientHello
=
false
)
{
{
if
(
BeforeTunnelConnectResponse
!=
null
)
if
(
BeforeTunnelConnectResponse
!=
null
)
...
...
src/Titanium.Web.Proxy/ProxyServer.cs
View file @
56c835cb
...
@@ -145,6 +145,12 @@ namespace Titanium.Web.Proxy
...
@@ -145,6 +145,12 @@ namespace Titanium.Web.Proxy
/// </summary>
/// </summary>
public
bool
EnableWinAuth
{
get
;
set
;
}
public
bool
EnableWinAuth
{
get
;
set
;
}
/// <summary>
/// Enable disable HTTP/2 support. This setting is internal,
/// because the implementation is not finished
/// </summary>
internal
bool
EnableHttp2
{
get
;
set
;
}
=
false
;
/// <summary>
/// <summary>
/// Should we check for certificate revocation during SSL authentication to servers
/// Should we check for certificate revocation during SSL authentication to servers
/// Note: If enabled can reduce performance. Defaults to false.
/// Note: If enabled can reduce performance. Defaults to false.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment