feat: update

This commit is contained in:
2021-05-05 14:07:24 +08:00
parent b6eb4f6712
commit 63c82c7db5
3 changed files with 71 additions and 19 deletions

View File

@@ -188,8 +188,8 @@ async fn main() -> tide::Result<()> {
}
let filtered_cert_config = cert_config.filter_cert_config_items(30);
for item in &filtered_cert_config.cert_items {
if item.common_name.as_ref().map(|n| n.contains("*")).unwrap_or(false)
|| item.dns_names.as_ref().map(|dns_names| dns_names.iter().any(|n| n.contains("*"))).unwrap_or(false) {
if item.common_name.as_ref().map(|n| n.contains('*')).unwrap_or(false)
|| item.dns_names.as_ref().map(|dns_names| dns_names.iter().any(|n| n.contains('*'))).unwrap_or(false) {
warning!("Currently not support wide card domain name");
continue;
}