From fd071db09d9f2824b441a091b86e09a855227716 Mon Sep 17 00:00:00 2001 From: DanGould Date: Thu, 19 Dec 2024 22:50:47 -0500 Subject: [PATCH] Default None ohttp_keys in Config::builder( Without this, the configuration may fail when deserialization parses an empty string --- payjoin-cli/ohttp-keys | Bin 0 -> 74 bytes payjoin-cli/src/app/config.rs | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 payjoin-cli/ohttp-keys diff --git a/payjoin-cli/ohttp-keys b/payjoin-cli/ohttp-keys new file mode 100644 index 0000000000000000000000000000000000000000..101be57e2c5add5aeb3487f5306d2dbac518cffc GIT binary patch literal 74 zcmV-Q0JZ-C02Ty$e=*=be&@v{KI6AhR7Tm1iT8La#M!Peg^7aQmLjMY_5U)F$}wox gkEC=2|M4D)FqZ{DMLY#LgkOwWes~=K1ONd50{}7~Jpcdz literal 0 HcmV?d00001 diff --git a/payjoin-cli/src/app/config.rs b/payjoin-cli/src/app/config.rs index cdb213cb..c4c14dd8 100644 --- a/payjoin-cli/src/app/config.rs +++ b/payjoin-cli/src/app/config.rs @@ -73,7 +73,8 @@ impl AppConfig { "ohttp_relay", matches.get_one::("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::)?; let builder = match matches.subcommand() { Some(("send", _)) => builder,