Reference tls12 directly now that we're using .net 4.6

This commit is contained in:
Ben Olden-Cooligan 2020-01-29 20:42:54 -05:00
parent a82dfb5420
commit 3d35e69ef8

View File

@ -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)