mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-18 10:26:11 +08:00
Refactor TLS 1.3 support.
This commit is contained in:
@@ -19,7 +19,7 @@ namespace MQTTnet.Client.Options
|
||||
|
||||
public Func<MqttClientCertificateValidationCallbackContext, bool> CertificateValidationHandler { get; set; }
|
||||
|
||||
#if NETCOREAPP3_0 || NET5_0
|
||||
#if NETCOREAPP3_1 || NET5_0
|
||||
public SslProtocols SslProtocol { get; set; } = SslProtocols.Tls13;
|
||||
#else
|
||||
public SslProtocols SslProtocol { get; set; } = SslProtocols.Tls12;
|
||||
|
||||
Reference in New Issue
Block a user