Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic support for proxy #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

seberm
Copy link

@seberm seberm commented Apr 13, 2023

Get the proxy configuration from clightning configuration file and use it for all http/https connections.

We need to proxy all http/https trustedcoin connections via Tor in a nix-bitcoin project, see the PR here:

We currently set the Environment="HTTPS_PROXY=socks5://127.0.0.1:9050" and Environment="HTTP_PROXY=socks5://127.0.0.1:9050" env variables in a clightning systemd service configuration as a workaround:

@fiatjaf
Copy link
Collaborator

fiatjaf commented Apr 14, 2023

Looks good. Should I merge?

@seberm
Copy link
Author

seberm commented Apr 14, 2023

Hello @fiatjaf,
we need to get the proxy value from the configuration provided by init method.

I think that this is not supported in current lightningd-gjson-rpc version. That's why I created this PR:

Please, let me know, what you think, feel free to make any changes. The golang is not my strong suit.

@seberm seberm marked this pull request as ready for review April 14, 2023 21:08
@fiatjaf
Copy link
Collaborator

fiatjaf commented Apr 14, 2023

Merged that one and published as v1.6.2.

@fiatjaf fiatjaf force-pushed the master branch 4 times, most recently from 519df53 to feeff0b Compare July 11, 2024 23:11
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.

None yet

2 participants