We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5b8907e + 6097008 commit 3d1681bCopy full SHA for 3d1681b
1 file changed
payjoin-cli/src/app/v2/ohttp.rs
@@ -34,10 +34,8 @@ pub(crate) async fn unwrap_ohttp_keys_or_else_fetch(
34
) -> Result<ValidatedOhttpKeys> {
35
if let Some(ohttp_keys) = config.v2()?.ohttp_keys.clone() {
36
println!("Using OHTTP Keys from config");
37
- return Ok(ValidatedOhttpKeys {
38
- ohttp_keys,
39
- relay_url: config.v2()?.ohttp_relays[0].clone(),
40
- });
+ let validated = fetch_ohttp_keys(config, directory, relay_manager).await?;
+ Ok(ValidatedOhttpKeys { ohttp_keys, relay_url: validated.relay_url })
41
} else {
42
println!("Bootstrapping private network transport over Oblivious HTTP");
43
let fetched_keys = fetch_ohttp_keys(config, directory, relay_manager).await?;
0 commit comments