git ssb

4+

Dominic / scuttlebot



Commit 90c220e6fc46b54f9b05f0592b2f3b50a00374e2

disable gossip with --offline

ansuz committed on 11/25/2016, 9:38:56 AM
Parent: 8b951221c7e4fff2ff90242e1cca1898dc7fd674

Files changed

plugins/gossip/init.jschanged
plugins/gossip/init.jsView
@@ -2,8 +2,10 @@
22 var pull = require('pull-stream')
33 var ref = require('ssb-ref')
44
55 module.exports = function (gossip, config, server) {
6 + // TODO translate
7 + if (config.offline) return void console.log("Running in offline mode: gossip disabled")
68
79 // populate peertable with configured seeds (mainly used in testing)
810 var seeds = config.seeds
911

Built with git-ssb-web