Commit 4e7982f745d702f29aca19ba8c0f9eb788c82493
Enable unix if not set in config
Anders Rune Jensen committed on 9/11/2018, 6:31:06 PMParent: 9bc7104bf09e5e5467fddc99131c2a896a5f65ef
Files changed
config.js | changed |
config.js | |||
---|---|---|---|
@@ -16,9 +16,11 @@ | |||
16 | 16 … | console.log('LOADING config') | |
17 | 17 … | config = Config(appName, opts) | |
18 | 18 … | config.keys = ssbKeys.loadOrCreateSync(Path.join(config.path, 'secret')) | |
19 | 19 … | ||
20 | - // HACK: fix offline on windows by specifying 127.0.0.1 instead of localhost (default) | ||
20 … | + if (!config.connections.incoming.unix) | ||
21 … | + config.connections.incoming.unix = [{ "scope": "local", "transform": "noauth" }] | ||
22 … | + | ||
21 | 23 … | config.remote = `unix:${Path.join(config.path, 'socket')}:~noauth:${config.keys.id.slice(1).replace('.ed25519', '')}` | |
22 | 24 … | } | |
23 | 25 … | return config | |
24 | 26 … | }) |
Built with git-ssb-web