mirror of
https://github.com/cyanfish/naps2.git
synced 2024-11-11 02:45:19 +03:00
Reference tls12 directly now that we're using .net 4.6
This commit is contained in:
parent
a82dfb5420
commit
3d35e69ef8
@ -32,14 +32,7 @@ namespace NAPS2.Update
|
||||
|
||||
static UpdateOperation()
|
||||
{
|
||||
try
|
||||
{
|
||||
const int tls12 = 3072;
|
||||
ServicePointManager.SecurityProtocol = (SecurityProtocolType)tls12;
|
||||
}
|
||||
catch (NotSupportedException)
|
||||
{
|
||||
}
|
||||
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
|
||||
}
|
||||
|
||||
public UpdateOperation(ImageContext imageContext, ErrorOutput errorOutput)
|
||||
|
Loading…
Reference in New Issue
Block a user