mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-09-01 08:49:16 +00:00
fmt
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user