mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-20 11:45:43 +08:00
Expose client certificate at MQTT connection validator. Make DualMode optional.
This commit is contained in:
@@ -136,7 +136,7 @@ namespace MQTTnet.Server
|
||||
await connection.StopAsync().ConfigureAwait(false);
|
||||
}
|
||||
|
||||
if (_sessions.TryRemove(clientId, out var session))
|
||||
if (_sessions.TryRemove(clientId, out _))
|
||||
{
|
||||
}
|
||||
|
||||
@@ -296,7 +296,8 @@ namespace MQTTnet.Server
|
||||
connectPacket.Password,
|
||||
connectPacket.WillMessage,
|
||||
clientAdapter.Endpoint,
|
||||
clientAdapter.IsSecureConnection);
|
||||
clientAdapter.IsSecureConnection,
|
||||
clientAdapter.ClientCertificate);
|
||||
|
||||
var connectionValidator = _options.ConnectionValidator;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user