Skip to content

Commit

Permalink
Merge pull request #1842 from subspace/fixes-for-quic
Browse files Browse the repository at this point in the history
Change subpspace-bootstrap-node CLI arguments.
  • Loading branch information
nazar-pc authored Aug 18, 2023
2 parents 4ddbc8c + e2ab3b4 commit ed5d284
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/subspace-networking/examples/benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ pub async fn configure_dsn(
let default_config = Config::new(protocol_prefix, keypair, (), Some(PeerInfoProvider::Client));

let config = Config {
listen_on: vec!["/ip4/0.0.0.0/tcp/40044".parse().unwrap()],
listen_on: vec!["/ip4/0.0.0.0/tcp/0".parse().unwrap()],
allow_non_global_addresses_in_dht: enable_private_ips,
kademlia_mode: Some(Mode::Client),
request_response_protocols: vec![PieceByIndexRequestHandler::create(|_, _| async { None })],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ enum Command {
#[arg(long, alias = "bootstrap-node")]
bootstrap_nodes: Vec<Multiaddr>,
/// Keypair for node identity, can be obtained with `generate-keypair` command
#[clap(long)]
keypair: String,
/// Multiaddr to listen on for subspace networking, multiple are supported
#[clap(default_value = "/ip4/0.0.0.0/tcp/0")]
#[clap(long, default_value = "/ip4/0.0.0.0/tcp/0")]
listen_on: Vec<Multiaddr>,
/// Multiaddresses of reserved peers to maintain connections to, multiple are supported
#[arg(long, alias = "reserved-peer")]
Expand Down

0 comments on commit ed5d284

Please sign in to comment.