Can configure all network settings

This commit is contained in:
2023-12-06 18:48:07 +01:00
parent b7d44f3091
commit 23f2029deb
4 changed files with 232 additions and 13 deletions

View File

@ -371,6 +371,12 @@ impl NetworkInfo {
}
}
if let Some(domain) = &self.domain {
if !regex!("^[a-zA-Z0-9.]+$").is_match(domain) {
return Err(StructureExtraction("Domain name is invalid!").into());
}
}
let mut ips = Vec::with_capacity(2);
if let Some(ipv4) = self.ip_v4 {