mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-02 03:28:25 +08:00
Merge pull request #4270 from ipfs/misc/pnet-docs/boot
docs(pnet): add more info about bootstrap
This commit is contained in:
@ -185,11 +185,24 @@ When using this feature, you will not be able to connect to the default bootstra
|
|||||||
nodes (Since we arent part of your private network) so you will need to set up
|
nodes (Since we arent part of your private network) so you will need to set up
|
||||||
your own bootstrap nodes.
|
your own bootstrap nodes.
|
||||||
|
|
||||||
To prevent your node from even trying to connect to the default bootstrap nodes, run:
|
First, to prevent your node from even trying to connect to the default bootstrap nodes, run:
|
||||||
```bash
|
```bash
|
||||||
ipfs bootstrap rm --all
|
ipfs bootstrap rm --all
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Then add your own bootstrap peers with:
|
||||||
|
```bash
|
||||||
|
ipfs bootstrap add <multiaddr>
|
||||||
|
```
|
||||||
|
|
||||||
|
For example:
|
||||||
|
```
|
||||||
|
ipfs bootstrap add /ip4/104.236.76.40/tcp/4001/ipfs/QmSoLV4Bbm51jM9C4gDYZQ9Cy3U6aXMJDAbzgu2fzaDs64
|
||||||
|
```
|
||||||
|
|
||||||
|
Bootstrap nodes are no different from all other nodes in the network apart from
|
||||||
|
the function they serve.
|
||||||
|
|
||||||
To be extra cautious, You can also set the `LIBP2P_FORCE_PNET` environment
|
To be extra cautious, You can also set the `LIBP2P_FORCE_PNET` environment
|
||||||
variable to `1` to force the usage of private networks. If no private network is
|
variable to `1` to force the usage of private networks. If no private network is
|
||||||
configured, the daemon will fail to start.
|
configured, the daemon will fail to start.
|
||||||
|
Reference in New Issue
Block a user