Add Tor support for outbound connections#177
Add Tor support for outbound connections#177benthecarman merged 1 commit intolightningdevkit:mainfrom
Conversation
|
👋 Thanks for assigning @benthecarman as a reviewer! |
ldk-server/src/util/config.rs
Outdated
| client_trusts_lsp = true | ||
|
|
||
| [tor] | ||
| proxy_address = "vww6ybal4bd7szmgncyruucpgfkqahzddi37ktce36gpflljhvevubid.onion:9735" |
There was a problem hiding this comment.
Proxy address will look like 127.0.0.1:9050. Can we use that here and below?
There was a problem hiding this comment.
Thank you. I missed the part of the docs that says "The proxy address must not itself be an onion address."
ldk-server/src/main.rs
Outdated
|
|
||
| if let Some(tor_config) = config_file.tor_config { | ||
| let tor_config = ldk_node::config::TorConfig { proxy_address: tor_config.proxy_address }; | ||
| let _ = builder.set_tor_config(tor_config); |
There was a problem hiding this comment.
we need to handle this error
96855e9 to
9af1012
Compare
|
Addressed comments and rebased to fix conflicts. |
|
🔔 1st Reminder Hey @benthecarman! This PR has been waiting for your review. |
|
Exposed my mainnet ldk-server on tor if someone wants to try and connect |

This allows us to add Tor support for outbound connections via SOCKS as introduced in lightningdevkit/ldk-node#778.