Revert "remove hostname from config"

This commit is contained in:
Luna Yao
2026-04-04 06:01:23 +02:00
parent c8697e76b4
commit ea5e34b6af
5 changed files with 63 additions and 46 deletions
+1 -1
View File
@@ -213,7 +213,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(&hostname);
global_ctx.config.set_hostname(Some(hostname));
}
if let Some(ipv4) = patch.ipv4 {
if !global_ctx.config.get_dhcp() {