From e66c24101a0a93e49c3959dc6094879d51e823e8 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 24 Oct 2026 15:05:46 +0200 Subject: wire up --mycelium-tcp-listen-port It wasn't used before, causing the supervised daemon to always pick a random one. --- src/main.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 5f1b3d2..f6c7b5d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -49,7 +49,7 @@ struct Args { long, value_name = "SCHEME://HOSTNAME:PORT", default_value = None, - conflicts_with_all = &["mycelium_key_file", "mycelium_network_key_file", "mycelium_network_name"], + conflicts_with_all = &["mycelium_key_file", "mycelium_network_key_file", "mycelium_network_name", "mycelium_tcp_listen_port"], )] mycelium_rest_url: Option, @@ -62,7 +62,9 @@ struct Args { #[arg(long)] pub mycelium_network_name: Option, - #[arg(long)] + /// TCP port the supervised Mycelium daemon listens on for overlay peers; a free + /// port if absent. + #[arg(long, value_name = "PORT")] pub mycelium_tcp_listen_port: Option, #[arg( @@ -152,6 +154,7 @@ async fn main() -> Result<()> { rest_url_opt: args.mycelium_rest_url, key_file_opt: args.mycelium_key_file, network_key_file: args.mycelium_network_key_file, + tcp_port: args.mycelium_tcp_listen_port, peers: args.mycelium_peers, ..Default::default() }; -- cgit v1.3.1