Skip to content

Commit

Permalink
add default alt_names
Browse files Browse the repository at this point in the history
  • Loading branch information
shamardy committed Jun 20, 2023
1 parent 759119c commit fbdb92b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mm2src/mm2_core/src/mm_ctx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>| {
Expand Down

0 comments on commit fbdb92b

Please sign in to comment.