Browse Source
* add test case for bootstrapper * fix port/host/opts args in bootstrapper * add more test cases for bootstrapper * feedback from mafintosh * added options.host for bindmaster
committed by
GitHub
5 changed files with 67 additions and 5 deletions
@ -1,5 +1,5 @@ |
|||||
import DHT from '../index.js' |
import DHT from '../index.js' |
||||
|
|
||||
const bootstrap = new DHT({ ephemeral: false, firewalled: false, port: 10001 }) |
const bootstrap = DHT.bootstrapper(10001, '127.0.0.1') |
||||
await bootstrap.ready() |
await bootstrap.ready() |
||||
console.log(bootstrap.address()) |
console.log(bootstrap.address()) |
||||
|
Loading…
Reference in new issue