Skip to content

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 seberm force-pushed the feature/add-proxy-support branch from ce2896f to c5009ed Compare April 14, 2023 20:57
@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.

@seberm seberm force-pushed the feature/add-proxy-support branch from c5009ed to 3284f99 Compare April 15, 2023 09:12
@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.

2 participants