sauron: add Tor proxy support

Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
This commit is contained in:
Antoine Poinsot
2020-05-17 22:59:16 +02:00
committed by Christian Decker
parent 04662336fa
commit bd1459ab4e
3 changed files with 50 additions and 11 deletions

View File

@@ -23,3 +23,12 @@ Here is a fully reptilian example running against [blockstream.info](https://blo
```
lightningd --mainnet --disable-plugin bcli --plugin $PWD/sauron.py --sauron-api-endpoint https://blockstream.info/api/
```
You can use also proxy your requests through [Tor](https://www.torproject.org/) by
specifying a SOCKS proxy to use with the `--sauron-tor-proxy` startup option, in
the form `address:port`.
Hidden services are also supported :
```
lightningd --testnet --disable-plugin bcli --plugin $PWD/sauron.py --sauron-tor-proxy localhost:9050 --sauron-api-endpoint http://explorerzydxu5ecjrkwceayqybizmpjjznk5izmitf2modhcusuqlid.onion/testnet/api/
```