This commit is contained in:
Luna Yao
2026-04-17 18:59:11 +02:00
parent cbdfdfacc1
commit b070cff8e2
5 changed files with 23 additions and 8 deletions
+6 -1
View File
@@ -51,7 +51,12 @@ impl DnsConfig {
impl DnsConfig {
pub fn get_name(&self) -> LowerName {
if self.name.is_empty() {
parse(hostname::get().unwrap_or_default().to_string_lossy().as_ref())
parse(
hostname::get()
.unwrap_or_default()
.to_string_lossy()
.as_ref(),
)
} else {
self.name.clone()
}