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
4298809c
Commit
4298809c
authored
Jul 15, 2016
by
justcoding121
Committed by
justcoding121
Jul 15, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
parent
153efe81
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
ProxyServer.cs
Titanium.Web.Proxy/ProxyServer.cs
+3
-3
RequestHandler.cs
Titanium.Web.Proxy/RequestHandler.cs
+1
-1
No files found.
Titanium.Web.Proxy/ProxyServer.cs
View file @
4298809c
...
@@ -24,9 +24,9 @@ namespace Titanium.Web.Proxy
...
@@ -24,9 +24,9 @@ namespace Titanium.Web.Proxy
private
CertificateManager
certificateCacheManager
{
get
;
set
;
}
private
CertificateManager
certificateCacheManager
{
get
;
set
;
}
/// <summary>
/// <summary>
/// A object that
manages tcp connection cache
to server
/// A object that
creates tcp connection
to server
/// </summary>
/// </summary>
private
TcpConnectionFactory
tcpConnection
CacheManager
{
get
;
set
;
}
private
TcpConnectionFactory
tcpConnection
Factory
{
get
;
set
;
}
/// <summary>
/// <summary>
/// Manage system proxy settings
/// Manage system proxy settings
...
@@ -126,7 +126,7 @@ namespace Titanium.Web.Proxy
...
@@ -126,7 +126,7 @@ namespace Titanium.Web.Proxy
CertificateCacheTimeOutMinutes
=
60
;
CertificateCacheTimeOutMinutes
=
60
;
ProxyEndPoints
=
new
List
<
ProxyEndPoint
>();
ProxyEndPoints
=
new
List
<
ProxyEndPoint
>();
tcpConnection
CacheManager
=
new
TcpConnectionFactory
();
tcpConnection
Factory
=
new
TcpConnectionFactory
();
systemProxySettingsManager
=
new
SystemProxyManager
();
systemProxySettingsManager
=
new
SystemProxyManager
();
firefoxProxySettingsManager
=
new
FireFoxProxySettingsManager
();
firefoxProxySettingsManager
=
new
FireFoxProxySettingsManager
();
...
...
Titanium.Web.Proxy/RequestHandler.cs
View file @
4298809c
...
@@ -323,7 +323,7 @@ namespace Titanium.Web.Proxy
...
@@ -323,7 +323,7 @@ namespace Titanium.Web.Proxy
}
}
//construct the web request that we are going to issue on behalf of the client.
//construct the web request that we are going to issue on behalf of the client.
connection
=
connection
!=
null
?
connection
:
await
tcpConnection
CacheManager
.
GetClient
(
args
.
WebSession
.
Request
.
RequestUri
.
Host
,
args
.
WebSession
.
Request
.
RequestUri
.
Port
,
args
.
IsHttps
,
version
,
connection
=
connection
!=
null
?
connection
:
await
tcpConnection
Factory
.
GetClient
(
args
.
WebSession
.
Request
.
RequestUri
.
Host
,
args
.
WebSession
.
Request
.
RequestUri
.
Port
,
args
.
IsHttps
,
version
,
UpStreamHttpProxy
,
UpStreamHttpsProxy
,
BUFFER_SIZE
,
SupportedSslProtocols
,
ConnectionTimeOutSeconds
,
new
RemoteCertificateValidationCallback
(
ValidateServerCertificate
),
UpStreamHttpProxy
,
UpStreamHttpsProxy
,
BUFFER_SIZE
,
SupportedSslProtocols
,
ConnectionTimeOutSeconds
,
new
RemoteCertificateValidationCallback
(
ValidateServerCertificate
),
new
LocalCertificateSelectionCallback
(
SelectClientCertificate
));
new
LocalCertificateSelectionCallback
(
SelectClientCertificate
));
...
...
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