From 3966aecb5eaa32a93681b613719b08d64280eeac Mon Sep 17 00:00:00 2001 From: dr-frmr Date: Fri, 7 Jun 2024 13:01:10 -0600 Subject: [PATCH 1/2] add cfg flag for tcp --- kinode/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/kinode/src/main.rs b/kinode/src/main.rs index 0b4fd477..4e145271 100644 --- a/kinode/src/main.rs +++ b/kinode/src/main.rs @@ -167,6 +167,7 @@ async fn main() { let our_ip = find_public_ip().await; let (ws_tcp_handle, ws_flag_used) = setup_networking(ws_networking_port).await; + #[cfg(not(feature = "simulation-mode"))] let (tcp_tcp_handle, tcp_flag_used) = setup_networking(tcp_networking_port).await; #[cfg(feature = "simulation-mode")] From c025307f0050ae60caf0e500172cd59ab7d3847d Mon Sep 17 00:00:00 2001 From: dr-frmr Date: Fri, 7 Jun 2024 13:07:12 -0600 Subject: [PATCH 2/2] one more cfg flag --- kinode/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/kinode/src/main.rs b/kinode/src/main.rs index 4e145271..2c8c1435 100644 --- a/kinode/src/main.rs +++ b/kinode/src/main.rs @@ -59,6 +59,7 @@ async fn main() { create_home_directory(&home_directory_path).await; let http_server_port = set_http_server_port(matches.get_one::("port")).await; let ws_networking_port = matches.get_one::("ws-port"); + #[cfg(not(feature = "simulation-mode"))] let tcp_networking_port = matches.get_one::("tcp-port"); let verbose_mode = *matches .get_one::("verbosity")