From fbdb92b399f33b16c0746dbcf7f1845f6250ad74 Mon Sep 17 00:00:00 2001 From: shamardy Date: Tue, 20 Jun 2023 05:16:25 +0300 Subject: [PATCH] add default alt_names --- mm2src/mm2_core/src/mm_ctx.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mm2src/mm2_core/src/mm_ctx.rs b/mm2src/mm2_core/src/mm_ctx.rs index 0c10496844c..533f5f64f77 100644 --- a/mm2src/mm2_core/src/mm_ctx.rs +++ b/mm2src/mm2_core/src/mm_ctx.rs @@ -227,6 +227,11 @@ impl MmCtx { ) } + if self.conf["alt_names"].is_null() { + // Default SANs + return Ok(vec!["localhost".to_string(), "127.0.0.1".to_string()]); + } + json::from_value(self.conf["alt_names"].clone()) .map_err(|e| format!("`alt_names` is not a valid JSON array of strings: {}", e)) .and_then(|names: Vec| {