Fix automatic P2P settings restoration in CLI host mode

This commit is contained in:
vorotamoroz committed 2026-10-14 08:02:13 +00:00
1 parent 0956663f7b
commit 3e2b4dcb3b
16 files changed
+944 -25

No files matched your search

+1 -1
View File
@@ -214,7 +214,7 @@ export async function runCommand(options: CLIOptions, context: CLICommandContext
if (options.command === "p2p-host") {
writeStderrLine(standardIo, "[Command] p2p-host");
await openP2PHost(core, context.p2pReplicator);
await openP2PHost(core, context.p2pReplicator, context.originalP2PSettings);
writeStderrLine(standardIo, "[Ready] P2P host is running. Press Ctrl+C to stop.");
await new Promise(() => {});
return true;