git ssb

16+

Dominic / patchbay



Commit 7ec8576dc1fa3f5fd84478f8aa7f3ea3c6805c81

dont add sockets for windows at the moment

mixmix committed on 11/8/2018, 10:01:51 PM
Parent: fbeb26bad2f96cc85202a94623d26c0c6539b0be

Files changed

config.jschanged
config.jsView
@@ -1,9 +1,8 @@
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')
65
76 const appName = process.env.ssb_appname || 'ssb'
87 const opts = appName === 'ssb'
98 ? null
@@ -19,15 +18,17 @@
1918
2019 const keys = ssbKeys.loadOrCreateSync(Path.join(config.path, 'secret'))
2120 const pubkey = keys.id.slice(1).replace(`.${keys.curve}`, '')
2221
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- })
22 + config.key = keys
23 + if (!process.platform.startsWith('win')) {
24 + config.connections = {
25 + incoming: {
26 + unix: [{ 'scope': 'local', 'transform': 'noauth' }]
27 + }
28 + }
29 + config.remote = `unix:${Path.join(config.path, 'socket')}:~noauth:${pubkey}`
30 + }
3031 }
3132 return config
3233 })
3334 }

Built with git-ssb-web