git ssb

1+

punkmonk.termux / mvd



forked from ev / mvd

Commit 1e9994726f2118a824d6e041144b60cc1643fac0

integrate @arj suggetions from https://github.com/ssbc/scuttlebot/issues/545

Ev Bogue committed on 9/24/2018, 3:49:27 PM
Parent: 9a82df29e11819000838f8f2b5a9dbdedf1711fc

Files changed

bin.jschanged
config/inject.jschanged
bin.jsView
@@ -41,17 +41,18 @@
4141 .use(require('ssb-ebt'))
4242 .use(require('ssb-search'))
4343 .use(require('scuttlebot/plugins/invite'))
4444 .use(require('scuttlebot/plugins/local'))
45+ //.use(require('ssb-ws'))
4546 .use(require('decent-ws'))
4647 .use({
4748 name: 'serve',
4849 version: '1.0.0',
4950 init: function (sbot) {
5051 sbot.ws.use(function (req, res, next) {
5152 var send = config
5253 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')
5455 sbot.invite.create({modern: true}, function (err, cb) {
5556 send.invite = cb
5657 })
5758 if(req.url == '/')
config/inject.jsView
@@ -74,9 +74,9 @@
7474 ws: [{ scope: "public", transform: "shs" }]
7575 },
7676 outgoing: {
7777 net: [{ transform: "shs" }],
78- ws: [{ scope: "public", transform: "shs" }]
78+ ws: [{ transform: "shs" }]
7979 }
8080 },
8181 path: path.join(HOME, '.' + name),
8282 timers: {

Built with git-ssb-web