remove hostname from config

This commit is contained in:
Luna Yao
2026-03-31 23:31:40 +02:00
parent 56f430bf10
commit d5d600a524
5 changed files with 58 additions and 66 deletions
+4 -3
View File
@@ -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);