Commit 90c220e6fc46b54f9b05f0592b2f3b50a00374e2
disable gossip with --offline
ansuz committed on 11/25/2016, 9:38:56 AMParent: 8b951221c7e4fff2ff90242e1cca1898dc7fd674
Files changed
plugins/gossip/init.js | changed |
plugins/gossip/init.js | |||
---|---|---|---|
@@ -2,8 +2,10 @@ | |||
2 | 2 … | var pull = require('pull-stream') | |
3 | 3 … | var ref = require('ssb-ref') | |
4 | 4 … | ||
5 | 5 … | module.exports = function (gossip, config, server) { | |
6 … | + // TODO translate | ||
7 … | + if (config.offline) return void console.log("Running in offline mode: gossip disabled") | ||
6 | 8 … | ||
7 | 9 … | // populate peertable with configured seeds (mainly used in testing) | |
8 | 10 … | var seeds = config.seeds | |
9 | 11 … | ||
Built with git-ssb-web