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:
@@ -212,7 +212,7 @@ namespace MQTTnet.Server.Mqtt
|
||||
// Configure encrypted connections
|
||||
if (_settings.EncryptedTcpEndPoint.Enabled)
|
||||
{
|
||||
#if NETCOREAPP3_0 || NET5_0
|
||||
#if NETCOREAPP3_1 || NET5_0
|
||||
options
|
||||
.WithEncryptedEndpoint()
|
||||
.WithEncryptionSslProtocol(SslProtocols.Tls13);
|
||||
|
||||
Reference in New Issue
Block a user