Commit 509e939
committed
Route pay_any LNURL fetches through the shared HTTP client
`HTTPHrnResolver::new()` builds its own `reqwest::Client` and
ignores any proxy config, so LN-Address pays via /pay were
reaching the LNURL callback host directly even when
`socks_proxy` was set. /getbalance's max_sendable path was
fixed in the previous commit; this is the matching fix for
the actual send path.
Expose `MdkClient::http_client()` and pass that shared client
to `HTTPHrnResolver::with_client`. No new dependency; the
client was already built in `MdkClient::new()` and handed to
`MdkApiClient`.
Possible only because the reqwest 0.13 bump aligned mdkd with
bitcoin-payment-instructions; pre-bump the two crates pinned
incompatible reqwest majors and `with_client` rejected ours.1 parent 051aec2 commit 509e939
2 files changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
150 | 158 | | |
151 | 159 | | |
152 | 160 | | |
| |||
0 commit comments