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
5720a331
Unverified
Commit
5720a331
authored
May 03, 2020
by
honfika
Committed by
GitHub
May 03, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #763 from justcoding121/master
beta
parents
7e42d56c
0052e4ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
1 deletion
+26
-1
TcpConnectionFactory.cs
src/Titanium.Web.Proxy/Network/Tcp/TcpConnectionFactory.cs
+26
-1
No files found.
src/Titanium.Web.Proxy/Network/Tcp/TcpConnectionFactory.cs
View file @
5720a331
...
...
@@ -546,7 +546,32 @@ retry:
stream
?.
Dispose
();
tcpServerSocket
?.
Close
();
enabledSslProtocols
=
SslProtocols
.
Tls
;
// Specifying Tls11 and/or Tls12 will disable the usage of Ssl3, even if it has been included.
// https://docs.microsoft.com/en-us/dotnet/api/system.servicemodel.tcptransportsecurity.sslprotocols?view=dotnet-plat-ext-3.1
enabledSslProtocols
=
proxyServer
.
SupportedSslProtocols
&
(
SslProtocols
)
0xff
;
if
(
enabledSslProtocols
==
SslProtocols
.
None
)
{
throw
;
}
retry
=
false
;
goto
retry
;
}
catch
(
AuthenticationException
ex
)
when
(
ex
.
HResult
==
unchecked
((
int
)
0x80131501
)
&&
retry
&&
enabledSslProtocols
>=
SslProtocols
.
Tls11
)
{
stream
?.
Dispose
();
tcpServerSocket
?.
Close
();
// Specifying Tls11 and/or Tls12 will disable the usage of Ssl3, even if it has been included.
// https://docs.microsoft.com/en-us/dotnet/api/system.servicemodel.tcptransportsecurity.sslprotocols?view=dotnet-plat-ext-3.1
enabledSslProtocols
=
proxyServer
.
SupportedSslProtocols
&
(
SslProtocols
)
0xff
;
if
(
enabledSslProtocols
==
SslProtocols
.
None
)
{
throw
;
}
retry
=
false
;
goto
retry
;
}
...
...
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