jb55 / lnsocket

A minimal C & js library for sending messages to lightning nodes
Other
61 stars 9 forks source link

add tor proxy support to connect on onion endpoint #6

Closed lvaccaro closed 2 years ago

lvaccaro commented 2 years ago

Add tor proxy support to connect on clightning node through onion endpoint.

For test with tor, pass tor socks5 istance on lnrpc.c:

    if (!(ok = lnsocket_connect(ln, nodeid, host, "127.0.0.1:9050")))
        goto done;
jb55 commented 2 years ago

this is great! I'm on vacay right now but will review soon.

jb55 commented 2 years ago

Thanks! I changed the extra parameter in lnsocket_connect to a new function lnsocket_connect_tor because lnsocket_connect is a stable interface at this point, but otherwise LGTM. I will test this in https://lnlink.app...