Commit 1e9994726f2118a824d6e041144b60cc1643fac0
integrate @arj suggetions from https://github.com/ssbc/scuttlebot/issues/545
Ev Bogue committed on 9/24/2018, 3:49:27 PMParent: 9a82df29e11819000838f8f2b5a9dbdedf1711fc
Files changed
bin.js | changed |
config/inject.js | changed |
bin.js | ||
---|---|---|
@@ -41,17 +41,18 @@ | ||
41 | 41 … | .use(require('ssb-ebt')) |
42 | 42 … | .use(require('ssb-search')) |
43 | 43 … | .use(require('scuttlebot/plugins/invite')) |
44 | 44 … | .use(require('scuttlebot/plugins/local')) |
45 … | + //.use(require('ssb-ws')) | |
45 | 46 … | .use(require('decent-ws')) |
46 | 47 … | .use({ |
47 | 48 … | name: 'serve', |
48 | 49 … | version: '1.0.0', |
49 | 50 … | init: function (sbot) { |
50 | 51 … | sbot.ws.use(function (req, res, next) { |
51 | 52 … | var send = config |
52 | 53 … | delete send.keys // very important to keep this, as it removes the server keys from the config before broadcast |
53 | - send.address = sbot.ws.getAddress() | |
54 … | + send.address = sbot.getAddress('ws') | |
54 | 55 … | sbot.invite.create({modern: true}, function (err, cb) { |
55 | 56 … | send.invite = cb |
56 | 57 … | }) |
57 | 58 … | if(req.url == '/') |
Built with git-ssb-web