diff --git a/dist/index.js b/dist/index.js index c8b7fc1..93e6555 100644 --- a/dist/index.js +++ b/dist/index.js @@ -101,7 +101,7 @@ export default class DHT { if (!this.isServerAvailable(connection)) { continue; } - const node = new DhtNode(new Stream(true, new WebSocket(this._activeRelays.get(connection))), this._options); + const node = new DhtNode(new Stream(true, new WebSocket(this._relays.get(connection))), this._options); this._activeRelays.set(available[relayIndex], node); relayPromises.push(node.ready()); }