Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
remove DHT connection options that seems to be killing blobs
Browse files Browse the repository at this point in the history
  • Loading branch information
mmckegg committed Nov 28, 2018
1 parent b473ba3 commit 1885b22
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions index.js
Expand Up @@ -167,24 +167,22 @@ function setupContext (appName, opts, cb) {
friends: {
dunbar: 150,
hops: 2 // down from 3
},
connections: { // to support DHT invites
incoming: {
dht: [{ scope: 'public', transform: 'shs', port: 8423 }]
},
outgoing: {
dht: [{ transform: 'shs' }]
}
}
// connections: { // to support DHT invites
// incoming: {
// dht: [{ scope: 'public', transform: 'shs', port: 8423 }]
// },
// outgoing: {
// dht: [{ transform: 'shs' }]
// }
// }
}, opts))


ssbConfig.keys = ssbKeys.loadOrCreateSync(Path.join(ssbConfig.path, 'secret'))

const keys = ssbConfig.keys
const pubkey = keys.id.slice(1).replace(`.${keys.curve}`, '')


if (process.platform === 'win32') {
// fix offline on windows by specifying 127.0.0.1 instead of localhost (default)
ssbConfig.remote = `net:127.0.0.1:${config.port}~shs:${pubkey}`
Expand Down

0 comments on commit 1885b22

Please sign in to comment.