From 0767080715699c34d8fe90b843716ba5ec12f8b9 Mon Sep 17 00:00:00 2001 From: Predko Silvestr Date: Thu, 13 Jun 2024 17:51:16 +0300 Subject: [PATCH] fix: make external_auth pub in ConnectionSettings struct (#879) --- rumqttd/CHANGELOG.md | 1 + rumqttd/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/rumqttd/CHANGELOG.md b/rumqttd/CHANGELOG.md index 6d981ffd7..090bef2fe 100644 --- a/rumqttd/CHANGELOG.md +++ b/rumqttd/CHANGELOG.md @@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - record client id for remote link's span - session present flag in connack - Make write method return the number of bytes written correctly everywhere +- `ConnectionSettings` can be manually created ### Security - Implement constant-time password comparison in authentication logic diff --git a/rumqttd/src/lib.rs b/rumqttd/src/lib.rs index 3763bab57..0b62f89f8 100644 --- a/rumqttd/src/lib.rs +++ b/rumqttd/src/lib.rs @@ -149,7 +149,7 @@ pub struct ConnectionSettings { pub max_inflight_count: usize, pub auth: Option>, #[serde(skip)] - external_auth: Option, + pub external_auth: Option, #[serde(default)] pub dynamic_filters: bool, }