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
3aa4f2fd
Commit
3aa4f2fd
authored
Apr 14, 2018
by
Honfika
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
missing files...
parent
323808b0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
6 deletions
+5
-6
ExplicitClientHandler.cs
Titanium.Web.Proxy/ExplicitClientHandler.cs
+2
-2
CertificateManager.cs
Titanium.Web.Proxy/Network/CertificateManager.cs
+1
-2
RequestHandler.cs
Titanium.Web.Proxy/RequestHandler.cs
+1
-1
TransparentClientHandler.cs
Titanium.Web.Proxy/TransparentClientHandler.cs
+1
-1
No files found.
Titanium.Web.Proxy/ExplicitClientHandler.cs
View file @
3aa4f2fd
...
@@ -65,7 +65,7 @@ namespace Titanium.Web.Proxy
...
@@ -65,7 +65,7 @@ namespace Titanium.Web.Proxy
await
HeaderParser
.
ReadHeaders
(
clientStreamReader
,
connectRequest
.
Headers
);
await
HeaderParser
.
ReadHeaders
(
clientStreamReader
,
connectRequest
.
Headers
);
var
connectArgs
=
new
TunnelConnectSessionEventArgs
(
BufferSize
,
endPoint
,
connectRequest
,
var
connectArgs
=
new
TunnelConnectSessionEventArgs
(
BufferSize
,
endPoint
,
connectRequest
,
ExceptionFunc
,
cancellationTokenSource
);
cancellationTokenSource
,
ExceptionFunc
);
connectArgs
.
ProxyClient
.
TcpClient
=
tcpClient
;
connectArgs
.
ProxyClient
.
TcpClient
=
tcpClient
;
connectArgs
.
ProxyClient
.
ClientStream
=
clientStream
;
connectArgs
.
ProxyClient
.
ClientStream
=
clientStream
;
...
@@ -211,7 +211,7 @@ namespace Titanium.Web.Proxy
...
@@ -211,7 +211,7 @@ namespace Titanium.Web.Proxy
await
TcpHelper
.
SendRaw
(
clientStream
,
connection
.
Stream
,
BufferSize
,
await
TcpHelper
.
SendRaw
(
clientStream
,
connection
.
Stream
,
BufferSize
,
(
buffer
,
offset
,
count
)
=>
{
connectArgs
.
OnDataSent
(
buffer
,
offset
,
count
);
},
(
buffer
,
offset
,
count
)
=>
{
connectArgs
.
OnDataSent
(
buffer
,
offset
,
count
);
},
(
buffer
,
offset
,
count
)
=>
{
connectArgs
.
OnDataReceived
(
buffer
,
offset
,
count
);
},
(
buffer
,
offset
,
count
)
=>
{
connectArgs
.
OnDataReceived
(
buffer
,
offset
,
count
);
},
ExceptionFunc
,
connectArgs
.
CancellationTokenSource
);
connectArgs
.
CancellationTokenSource
,
ExceptionFunc
);
}
}
return
;
return
;
...
...
Titanium.Web.Proxy/Network/CertificateManager.cs
View file @
3aa4f2fd
...
@@ -533,10 +533,9 @@ namespace Titanium.Web.Proxy.Network
...
@@ -533,10 +533,9 @@ namespace Titanium.Web.Proxy.Network
var
outdated
=
certificateCache
.
Where
(
x
=>
x
.
Value
.
LastAccess
<
cutOff
).
ToList
();
var
outdated
=
certificateCache
.
Where
(
x
=>
x
.
Value
.
LastAccess
<
cutOff
).
ToList
();
CachedCertificate
removed
;
foreach
(
var
cache
in
outdated
)
foreach
(
var
cache
in
outdated
)
{
{
certificateCache
.
TryRemove
(
cache
.
Key
,
out
removed
);
certificateCache
.
TryRemove
(
cache
.
Key
,
out
_
);
}
}
//after a minute come back to check for outdated certificates in cache
//after a minute come back to check for outdated certificates in cache
...
...
Titanium.Web.Proxy/RequestHandler.cs
View file @
3aa4f2fd
...
@@ -230,7 +230,7 @@ namespace Titanium.Web.Proxy
...
@@ -230,7 +230,7 @@ namespace Titanium.Web.Proxy
await
TcpHelper
.
SendRaw
(
clientStream
,
connection
.
Stream
,
BufferSize
,
await
TcpHelper
.
SendRaw
(
clientStream
,
connection
.
Stream
,
BufferSize
,
(
buffer
,
offset
,
count
)
=>
{
args
.
OnDataSent
(
buffer
,
offset
,
count
);
},
(
buffer
,
offset
,
count
)
=>
{
args
.
OnDataSent
(
buffer
,
offset
,
count
);
},
(
buffer
,
offset
,
count
)
=>
{
args
.
OnDataReceived
(
buffer
,
offset
,
count
);
},
(
buffer
,
offset
,
count
)
=>
{
args
.
OnDataReceived
(
buffer
,
offset
,
count
);
},
ExceptionFunc
,
cancellationTokenSource
);
cancellationTokenSource
,
ExceptionFunc
);
return
;
return
;
}
}
...
...
Titanium.Web.Proxy/TransparentClientHandler.cs
View file @
3aa4f2fd
...
@@ -115,7 +115,7 @@ namespace Titanium.Web.Proxy
...
@@ -115,7 +115,7 @@ namespace Titanium.Web.Proxy
//var serverHelloInfo = await SslTools.PeekServerHello(serverStream);
//var serverHelloInfo = await SslTools.PeekServerHello(serverStream);
await
TcpHelper
.
SendRaw
(
clientStream
,
serverStream
,
BufferSize
,
await
TcpHelper
.
SendRaw
(
clientStream
,
serverStream
,
BufferSize
,
null
,
null
,
ExceptionFunc
,
cancellationTokenSource
);
null
,
null
,
cancellationTokenSource
,
ExceptionFunc
);
}
}
}
}
}
}
...
...
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