Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
skywhale committed Jun 20, 2024
1 parent 4449ae2 commit f0de388
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shared/src/prompts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,9 @@ pub fn ask_endpoint(listen_port: u16) -> Result<Endpoint, Error> {
publicip::get_any(Preference::Ipv4)
} else if Confirm::with_theme(&*THEME)
.wait_for_newline(true)
.with_prompt("You do not have a fixed global IP (use the unspecified address)?")
.with_prompt(
"Use an unspecified IP address? (this can occur if you do not have a fixed global IP)",
)
.interact()?
{
Some(IpAddr::V6(Ipv6Addr::UNSPECIFIED))
Expand Down
2 changes: 2 additions & 0 deletions shared/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,8 @@ pub struct OverrideEndpointOpts {
/// The external endpoint that you'd like the innernet server to broadcast
/// to other peers. The IP address may be unspecified, in which case the
/// server will try to resolve it based on its most recent connection.
/// The port will still be used even if you decide to use the unspecified
/// IP address.
#[clap(short, long)]
pub endpoint: Option<Endpoint>,

Expand Down

0 comments on commit f0de388

Please sign in to comment.