Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/bin/ant-devnet/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ pub struct Cli {
#[arg(long)]
pub bootstrap_count: Option<usize>,

/// Base port for node allocation (0 for auto).
/// Fixed base port: node `i` binds `base_port + i`. Without it (or with
/// 0) each node binds a port the OS assigns, unless the WebRTC Direct ports
/// are fixed (`--webrtc-direct-base-port` or `--host`), when a free fixed
/// range is picked.
#[arg(long)]
pub base_port: Option<u16>,

Expand Down Expand Up @@ -61,7 +64,9 @@ pub struct Cli {
#[arg(long, requires = "evm-payment")]
pub webrtc_direct: bool,

/// First UDP port assigned to devnet WebRTC Direct listeners (0 = allocate).
/// Fixed first UDP port for devnet WebRTC Direct listeners. Without it (or
/// with 0) the listeners bind ports the OS assigns if the nodes do too and
/// there is no `--host`; otherwise a free fixed range is picked.
#[arg(long, requires = "webrtc_direct")]
pub webrtc_direct_base_port: Option<u16>,

Expand Down
Loading
Loading