mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-31 19:22:38 +08:00
Fix TLS parameter options builder (#1104).
This commit is contained in:
@@ -252,7 +252,11 @@ namespace MQTTnet.Client.Options
|
|||||||
{
|
{
|
||||||
if (optionsBuilder == null) throw new ArgumentNullException(nameof(optionsBuilder));
|
if (optionsBuilder == null) throw new ArgumentNullException(nameof(optionsBuilder));
|
||||||
|
|
||||||
_tlsParameters = new MqttClientOptionsBuilderTlsParameters();
|
_tlsParameters = new MqttClientOptionsBuilderTlsParameters
|
||||||
|
{
|
||||||
|
UseTls = true
|
||||||
|
};
|
||||||
|
|
||||||
optionsBuilder(_tlsParameters);
|
optionsBuilder(_tlsParameters);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user