acme: explicitly ask for custom directory URI

instead of blocking on input without telling the user what's going on.

Reported on the forum: https://forum.proxmox.com/threads/147058/

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2024-05-15 13:21:42 +02:00 committed by Thomas Lamprecht
parent 1665eb2e48
commit a55c6efbf7

View File

@ -126,6 +126,8 @@ async fn register_account(
}
Ok(n) if n == KNOWN_ACME_DIRECTORIES.len() => {
input.clear();
print!("Enter custom directory URI: ");
std::io::stdout().flush()?;
std::io::stdin().read_line(&mut input)?;
break (input.trim().to_owned(), true);
}