fix(friends): restore LAN realm address after restart (#158)

This commit is contained in:
Дмитрий committed 2026-10-27 08:34:02 +05:00
1 parent 4a99dd3a6a
commit bf2fffcffa
3 files changed
+73 -7

No files matched your search

+1 -1
View File
@@ -2571,7 +2571,7 @@ async fn friends_enable(
friends::save(&meta, &settings)?;
let running = coa_core::process::observe(&root, &ports).world.state == coa_core::process::ServiceState::Running;
if running {
friends::apply_realm_address(&root, &host)?;
friends::apply_realm_address(&root, &settings)?;
}
Ok(FriendsResult { host, restart_required: changed && running, note })
})