Skip to content

Add Tor support for outbound connections#177

Open
Anyitechs wants to merge 1 commit intolightningdevkit:mainfrom
Anyitechs:add-TorSupport
Open

Add Tor support for outbound connections#177
Anyitechs wants to merge 1 commit intolightningdevkit:mainfrom
Anyitechs:add-TorSupport

Conversation

@Anyitechs
Copy link
Copy Markdown
Contributor

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

@ldk-reviews-bot
Copy link
Copy Markdown

ldk-reviews-bot commented Mar 30, 2026

👋 Thanks for assigning @benthecarman as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

client_trusts_lsp = true

[tor]
proxy_address = "vww6ybal4bd7szmgncyruucpgfkqahzddi37ktce36gpflljhvevubid.onion:9735"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Proxy address will look like 127.0.0.1:9050. Can we use that here and below?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. I missed the part of the docs that says "The proxy address must not itself be an onion address."


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);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to handle this error

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@Anyitechs
Copy link
Copy Markdown
Contributor Author

Addressed comments and rebased to fix conflicts.

@Anyitechs Anyitechs requested a review from benthecarman March 31, 2026 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants