Commit 94e518bc68336d01769d74ca064b0bafdfa0fee0
fix offline use on windows
fixes #532Matt McKegg committed on 6/30/2017, 12:20:00 PM
Parent: 4a2a36097891662d704717d4ef3334afef4b34dc
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -110,8 +110,12 @@ | ||
110 | 110 | }, opts)) |
111 | 111 | |
112 | 112 | ssbConfig.keys = ssbKeys.loadOrCreateSync(Path.join(ssbConfig.path, 'secret')) |
113 | 113 | |
114 | + // fix offline on windows by specifying 127.0.0.1 instead of localhost (default) | |
115 | + var id = ssbConfig.keys.id | |
116 | + ssbConfig.remote = `net:127.0.0.1:${ssbConfig.port}~shs:${id.slice(1).replace('.ed25519', '')}` | |
117 | + | |
114 | 118 | if (opts.server === false) { |
115 | 119 | cb && cb() |
116 | 120 | } else { |
117 | 121 | electron.ipcMain.once('server-started', function (ev, config) { |
Built with git-ssb-web