We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 618bd9c commit 8900680Copy full SHA for 8900680
1 file changed
index.js
@@ -123,6 +123,7 @@ class Autopass extends ReadyResource {
123
constructor(corestore, opts = {}) {
124
super()
125
this.router = new Router()
126
+ this.relayThrough = opts.relayThrough || null
127
this.store = corestore
128
this.swarm = opts.swarm || null
129
this.base = null
@@ -293,7 +294,8 @@ class Autopass extends ReadyResource {
293
294
if (this.swarm === null) {
295
this.swarm = new Hyperswarm({
296
keyPair: await this.store.createKeyPair('hyperswarm'),
- bootstrap: this.bootstrap
297
+ bootstrap: this.bootstrap,
298
+ relayThrough: this.relayThrough
299
})
300
this.swarm.on('connection', (connection, peerInfo) => {
301
this.base.replicate(connection)
0 commit comments