From 7aadf346317a0d38e42bb4743d38aa8f3ed811c7 Mon Sep 17 00:00:00 2001 From: dr-frmr Date: Mon, 25 Mar 2024 13:01:32 -0600 Subject: [PATCH] fix: sim-mode doesn't bind ws-port --- kinode/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/kinode/src/main.rs b/kinode/src/main.rs index 797e75d9..a5edbe3f 100644 --- a/kinode/src/main.rs +++ b/kinode/src/main.rs @@ -304,6 +304,7 @@ async fn main() { // booting will fail if the flag was used to select a different port. // if the flag was not used, the bound port will be dropped in favor of the onchain port. + #[cfg(not(feature = "simulation-mode"))] let (ws_tcp_handle, flag_used) = if let Some(port) = ws_networking_port { ( http::utils::find_open_port(*port, port + 1)