holepunchto / hyperswarm-dht-relay

Relaying the Hyperswarm DHT over other transport protocols to bring decentralized networking to everyone
ISC License
44 stars 10 forks source link

Server doesn't use the dht.defaultKeyPair when no keyPair is passed to server.listen() #4

Closed Nuhvi closed 2 years ago

Nuhvi commented 2 years ago

In hyperswarm/dht https://github.com/hyperswarm/dht/blob/008273991a4bab21042466a2c515fb7f0dd54e37/lib/server.js#L78

async listen (keyPair = this.dht.defaultKeyPair) {

In the dht-relay https://github.com/hyperswarm/dht-relay/blob/18f1024d954c8075120a3ab5e7942a893eca533e/lib/server.js#L50