git ssb

10+

Matt McKegg / patchwork



Commit 94e518bc68336d01769d74ca064b0bafdfa0fee0

fix offline use on windows

fixes #532
Matt McKegg committed on 6/30/2017, 12:20:00 PM
Parent: 4a2a36097891662d704717d4ef3334afef4b34dc

Files changed

index.jschanged
index.jsView
@@ -110,8 +110,12 @@
110110 }, opts))
111111
112112 ssbConfig.keys = ssbKeys.loadOrCreateSync(Path.join(ssbConfig.path, 'secret'))
113113
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+
114118 if (opts.server === false) {
115119 cb && cb()
116120 } else {
117121 electron.ipcMain.once('server-started', function (ev, config) {

Built with git-ssb-web