Mathias Buus
3 years ago
4 changed files with 9 additions and 7 deletions
@ -1,6 +1,4 @@ |
|||
const DHT = require('../') |
|||
|
|||
// Set ephemeral: true so other peers do not add us to the peer list, simply bootstrap
|
|||
const bootstrap = new DHT({ ephemeral: true }) |
|||
|
|||
bootstrap.bind(10001) |
|||
// Set ephemeral: true since this does not implement any APIs
|
|||
DHT.bootstrapper(10001, { ephemeral: true }) |
|||
|
Loading…
Reference in new issue