Commit 5de540f93f944e46ff47bdb266e7d1432d6f9293
Merge remote-tracking branch 'origin/master'
cel committed on 10/11/2017, 9:16:18 AMParent: 0d6131743c7648a7c310cb153e3d3c11febe815f
Parent: 902a7cb045aeedf56a1dab29c2975cd3b475937d
Files changed
index.js | changed |
package-lock.json | changed |
package.json | changed |
index.js | ||
---|---|---|
@@ -106,11 +106,12 @@ | ||
106 | 106 | exports.manifest = { |
107 | 107 | getAddress: 'async' |
108 | 108 | } |
109 | 109 | exports.init = function (sbot, config) { |
110 | - var port = config.npm ? config.npm.port : 8043 | |
111 | - var host = config.npm && config.npm.host || null | |
112 | - var autoAuth = config.npm && config.npm.autoAuth !== false | |
110 | + var conf = config.npm || {} | |
111 | + var port = conf.port || 8043 | |
112 | + var host = conf.host || null | |
113 | + var autoAuth = conf.autoAuth !== false | |
113 | 114 | |
114 | 115 | var server = http.createServer(exports.respond(sbot, config)) |
115 | 116 | var getAddress = onceify(function (cb) { |
116 | 117 | server.on('error', cb) |
Built with git-ssb-web