secure-scuttlebot classic

Fix caps being interpreted as a Buffer

Problem: The SSB-Server configures `caps` as a buffer, which breaks all
connections because it's supposed to be a base64 string.

Solution: Use the base64 string just like we're doing in SSB-Config.

Changed files
+1 -1
+1 -1
index.js
··· 3 3 4 4 // create a sbot with default caps. these can be overridden again when you call create. 5 5 function createSsbServer () { 6 - return SecretStack({ caps: { shs: Buffer.from(caps.shs, 'base64') } }) 6 + return SecretStack({ caps }) 7 7 .use(require('ssb-db')) 8 8 } 9 9 module.exports = createSsbServer()