git ssb

16+

Dominic / patchbay



Commit 2132bd9fceb7210863db722bc5fd5ad1370adf84

Merge pull request #258 from ssbc/upgrade-scuttlebot-to-12

Bump scuttlebot to 12.0.0 and use unix socket + noauth for local sbot connection
Anders Rune Jensen authored on 9/14/2018, 1:43:37 PM
GitHub committed on 9/14/2018, 1:43:37 PM
Parent: bdff198133f1c2a6de3a2eb1374aca2178ce1813
Parent: 32dce475ec91f2a5a01cdc3c18e065cdec7125dd

Files changed

config.jschanged
package-lock.jsonchanged
package.jsonchanged
config.jsView
@@ -1,8 +1,9 @@
11 const nest = require('depnest')
22 const Config = require('ssb-config/inject')
33 const ssbKeys = require('ssb-keys')
44 const Path = require('path')
5 +const merge = require('lodash/merge')
56
67 const appName = process.env.ssb_appname || 'ssb'
78 const opts = appName === 'ssb'
89 ? null
@@ -14,12 +15,19 @@
1415 return nest('config.sync.load', () => {
1516 if (!config) {
1617 console.log('LOADING config')
1718 config = Config(appName, opts)
18- config.keys = ssbKeys.loadOrCreateSync(Path.join(config.path, 'secret'))
1919
20- // HACK: fix offline on windows by specifying 127.0.0.1 instead of localhost (default)
21- config.remote = `net:127.0.0.1:${config.port}~shs:${config.keys.id.slice(1).replace('.ed25519', '')}`
20 + const keys = ssbKeys.loadOrCreateSync(Path.join(config.path, 'secret'))
21 + const pubkey = keys.id.slice(1).replace(`.${keys.curve}`, '')
22 +
23 + config = merge(config, {
24 + connections: {
25 + incoming: { unix: [{ 'scope': 'local', 'transform': 'noauth' }] }
26 + },
27 + keys,
28 + remote: `unix:${Path.join(config.path, 'socket')}:~noauth:${pubkey}`
29 + })
2230 }
2331 return config
2432 })
2533 }
package-lock.jsonView
The diff is too large to show. Use a local git client to view these changes.
Old file size: 314313 bytes
New file size: 314336 bytes
package.jsonView
@@ -82,17 +82,17 @@
8282 "read-directory": "^3.0.0",
8383 "require-style": "^1.0.1",
8484 "scuttle-blog": "^1.0.1",
8585 "scuttle-poll": "^1.3.4",
86- "scuttlebot": "^11.4.2",
86 + "scuttlebot": "^12.0.0",
8787 "setimmediate": "^1.0.5",
8888 "ssb-about": "^0.1.2",
8989 "ssb-backlinks": "^0.7.3",
9090 "ssb-blobs": "^1.1.5",
9191 "ssb-chess": "^2.3.12",
9292 "ssb-chess-db": "^1.0.3",
93- "ssb-config": "^2.2.0",
94- "ssb-ebt": "^5.2.2",
93 + "ssb-config": "^2.3.0",
94 + "ssb-ebt": "^5.2.3",
9595 "ssb-friends": "^3.1.3",
9696 "ssb-keys": "^7.0.15",
9797 "ssb-meme": "^1.0.4",
9898 "ssb-mentions": "^0.5.0",

Built with git-ssb-web