git ssb

2+

cel / ssb-party



Commit 8f1eb0f94826f7760a52520188ee85ad5527482b

Allow ssb_appname to be specified in opts (as "appName")

Jan Bölsche committed on 9/18/2017, 8:04:09 AM
Parent: fe609d942dae50f8d162b8a47a474a11d25a08f7

Files changed

index.jschanged
index.jsView
@@ -40,9 +40,9 @@
4040
4141 module.exports = function (opts, cb) {
4242 if (typeof opts === 'function') cb = opts, opts = null
4343 opts = opts || {}
44- var config = createConfig(process.env.ssb_appname, opts)
44 + var config = createConfig(process.env.ssb_appname || opts.appName, opts)
4545 var appKey = config.appKey ||
4646 (config.caps && config.caps.shs && new Buffer(config.caps.shs, 'base64'))
4747 if (!appKey) return cb(new Error('missing secret-handshake capability key'))
4848 var keys = config.keys || (config.keys =

Built with git-ssb-web