mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-09-02 17:15:43 +00:00
use localhost as default hostname
This commit is contained in:
@@ -583,7 +583,7 @@ impl ConfigLoader for TomlConfigLoader {
|
|||||||
hostname.unwrap_or_else(|| {
|
hostname.unwrap_or_else(|| {
|
||||||
sanitize(
|
sanitize(
|
||||||
hostname::get()
|
hostname::get()
|
||||||
.unwrap_or_default()
|
.unwrap_or_else(|_| "localhost".into())
|
||||||
.to_string_lossy()
|
.to_string_lossy()
|
||||||
.as_ref(),
|
.as_ref(),
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -227,7 +227,7 @@ pub async fn run_web_client(
|
|||||||
global_ctx.set_flags(flags);
|
global_ctx.set_flags(flags);
|
||||||
let hostname = hostname.unwrap_or_else(|| {
|
let hostname = hostname.unwrap_or_else(|| {
|
||||||
hostname::get()
|
hostname::get()
|
||||||
.unwrap_or_default()
|
.unwrap_or_else(|_| "localhost".into())
|
||||||
.to_string_lossy()
|
.to_string_lossy()
|
||||||
.into_owned()
|
.into_owned()
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user