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
+1 -1
View File
@@ -212,7 +212,7 @@ impl InstanceConfigPatcher {
let global_ctx = weak_upgrade(&self.global_ctx)?;
if let Some(hostname) = patch.hostname {
global_ctx.set_hostname(hostname.clone());
global_ctx.config.set_hostname(Some(hostname));
global_ctx.config.set_hostname(&hostname);
}
if let Some(ipv4) = patch.ipv4 {
if !global_ctx.config.get_dhcp() {