Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/noot/try-libp2p-tor
https://github.com/noot/try-libp2p-tor
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/noot/try-libp2p-tor
- Owner: noot
- Created: 2022-07-06T13:55:37.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-07-06T15:55:32.000Z (over 2 years ago)
- Last Synced: 2024-10-15T22:27:58.651Z (3 months ago)
- Language: Go
- Size: 38.1 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# try-libp2p-tor
Small program that allows you to run a libp2p node both with and without the tor transport, and connect a node to another node.
## Build
This program relies on my fork of the go-libp2p-tor-transport.
Clone it into your GOPATH and ensure the `replace` directive in `go.mod` points to the local fork:
```
git clone https://github.com/noot/go-libp2p-tor-transport
```Then build:
```
go build -tags=embedTor
```## Usage
To run a node with the tor transport:
```bash
./try-libp2p-tor
# []
```To run a default libp2p node (without the tor transport):
```bash
./try-libp2p-tor --no-tor
# [/ip4/192.168.0.102/tcp/62049/p2p/QmPYWg7LX1r4bBPgSb4u2cPRMzmXCuKFEa32KYGLmzP2yU /ip4/127.0.0.1/tcp/62049/p2p/QmPYWg7LX1r4bBPgSb4u2cPRMzmXCuKFEa32KYGLmzP2yU]
```To connect a node to other nodes:
```bash
./try-libp2p-tor --bootnodes /ip4/127.0.0.1/tcp/62049/p2p/QmPYWg7LX1r4bBPgSb4u2cPRMzmXCuKFEa32KYGLmzP2yU
```