mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-18 18:43:10 +08:00
Remove TLS support for UWP servers because Framework does not support it.
This commit is contained in:
@@ -8,7 +8,7 @@ namespace MQTTnet.Core.Client
|
||||
|
||||
public int? Port { get; set; }
|
||||
|
||||
public MqttClientSslOptions SslOptions { get; } = new MqttClientSslOptions();
|
||||
public MqttClientTlsOptions TlsOptions { get; } = new MqttClientTlsOptions();
|
||||
|
||||
public string UserName { get; set; }
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace MQTTnet.Core.Client
|
||||
return options.Port.Value;
|
||||
}
|
||||
|
||||
return !options.SslOptions.UseSsl ? 1883 : 8883;
|
||||
return !options.TlsOptions.UseTls ? 1883 : 8883;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -2,9 +2,9 @@
|
||||
|
||||
namespace MQTTnet.Core.Client
|
||||
{
|
||||
public sealed class MqttClientSslOptions
|
||||
public sealed class MqttClientTlsOptions
|
||||
{
|
||||
public bool UseSsl { get; set; }
|
||||
public bool UseTls { get; set; }
|
||||
|
||||
public bool CheckCertificateRevocation { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user