External endpoint IP prompt change (#222)

* Change phrasing of external IP address prompt

* Remove println! call in ask_endpoint
pull/239/head
Richard Schneider 2022-08-10 16:16:12 -05:00 committed by GitHub
parent 15594d4458
commit ca22927558
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -504,11 +504,9 @@ pub fn set_listen_port(
}
pub fn ask_endpoint(listen_port: u16) -> Result<Endpoint, Error> {
println!("getting external IP address.");
let external_ip = if Confirm::with_theme(&*THEME)
.wait_for_newline(true)
.with_prompt("Auto-fill public IP address (via a DNS query to 1.1.1.1)?")
.with_prompt("Auto-detect external endpoint IP address (via a DNS query to 1.1.1.1)?")
.interact()?
{
publicip::get_any(Preference::Ipv4)