mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-09-01 00:39:24 +00:00
remove hostname from config
This commit is contained in:
@@ -797,9 +797,10 @@ impl NetworkOptions {
|
||||
}
|
||||
|
||||
fn merge_into(&self, cfg: &TomlConfigLoader) -> anyhow::Result<()> {
|
||||
if self.hostname.is_some() {
|
||||
cfg.set_hostname(self.hostname.clone());
|
||||
}
|
||||
// TODO: remove hostname
|
||||
// if self.hostname.is_some() {
|
||||
// cfg.set_hostname(&self.hostname.clone());
|
||||
// }
|
||||
|
||||
let old_ns = cfg.get_network_identity();
|
||||
let network_name = self.network_name.clone().unwrap_or(old_ns.network_name);
|
||||
|
||||
Reference in New Issue
Block a user