Skip to content

Commit

Permalink
Default None ohttp_keys in Config::builder(
Browse files Browse the repository at this point in the history
Without this, the configuration may fail when deserialization parses an empty string
  • Loading branch information
DanGould committed Dec 20, 2024
1 parent 549a664 commit fd071db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Binary file added payjoin-cli/ohttp-keys
Binary file not shown.
3 changes: 2 additions & 1 deletion payjoin-cli/src/app/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ impl AppConfig {
"ohttp_relay",
matches.get_one::<Url>("ohttp_relay").map(|s| s.as_str()),
)?
.set_default("pj_directory", "https://payjo.in")?;
.set_default("pj_directory", "https://payjo.in")?
.set_default("ohttp_keys", None::<String>)?;

let builder = match matches.subcommand() {
Some(("send", _)) => builder,
Expand Down

0 comments on commit fd071db

Please sign in to comment.