[KOE-62] Added Tls1.1 and Tls1.2 as allowed protocols
This commit is contained in:
parent
1e690a63e6
commit
6d135c0ddc
|
@ -47,6 +47,7 @@ namespace Acacia.ZPush.Connect
|
|||
static ZPushConnection()
|
||||
{
|
||||
ServicePointManager.ServerCertificateValidationCallback = HandleCertificateError;
|
||||
ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
|
||||
}
|
||||
|
||||
private static readonly Dictionary<string, bool> _allowCertificateErrors = new Dictionary<string, bool>();
|
||||
|
|
Loading…
Reference in New Issue