holepunchto / hyperdht

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

Allow setting a port for the DHT when used as binary #11

Closed martinheidegger closed 4 years ago

martinheidegger commented 5 years ago

When starting the dht it will use a given port to connect. However, by adding a dht.listen(port) here it should be possible to use a predictable port.

martinheidegger commented 4 years ago

Found its way to the hyperswarm cli: https://github.com/hyperswarm/cli