holepunchto / hyperdht

The DHT powering Hyperswarm
https://docs.holepunch.to
MIT License
323 stars 46 forks source link

Improve CLI #124

Closed LuKks closed 1 year ago

LuKks commented 1 year ago

Don't merge yet. We first need https://github.com/mafintosh/dht-rpc/pull/58 and https://github.com/holepunchto/hyperswarm-dht/pull/117 to later update this PR

LuKks commented 1 year ago

Btw this also fixes this case where incorrectly creates a bootstrap node: hyperswarm-dht --bootstrap <host:port> --host <ip> --port <n>

LuKks commented 1 year ago

I still left the --persistent in the CLI but removed from the docs, it's actually useful when you're playing with own DHT networks but can't be recommended to use. Ideally the bootstrap node should serve for routing peers as per https://github.com/mafintosh/dht-rpc/pull/58