Skip to content

Commit fd071db

Browse files
committed
Default None ohttp_keys in Config::builder(
Without this, the configuration may fail when deserialization parses an empty string
1 parent 549a664 commit fd071db

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

payjoin-cli/ohttp-keys

74 Bytes
Binary file not shown.

payjoin-cli/src/app/config.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ impl AppConfig {
7373
"ohttp_relay",
7474
matches.get_one::<Url>("ohttp_relay").map(|s| s.as_str()),
7575
)?
76-
.set_default("pj_directory", "https://payjo.in")?;
76+
.set_default("pj_directory", "https://payjo.in")?
77+
.set_default("ohttp_keys", None::<String>)?;
7778

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

0 commit comments

Comments
 (0)