Commit e9fe5ee7d92e5d7630dba1dccd675875968d643e
Merge branch 'offline-mode'
Dominic Tarr committed on 11/26/2016, 3:04:47 PMParent: b64bd48050d244b93cd5c11613ac7c5e00a51612
Parent: d06669ad6f6bfbbd8fef97b6e36fec7f5e505483
Files changed
plugins/gossip/init.js | changed |
plugins/gossip/init.js | ||
---|---|---|
@@ -2,8 +2,9 @@ | ||
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 … | + if (config.offline) return void console.log("Running in offline mode: gossip disabled") | |
6 | 7 … | |
7 | 8 … | // populate peertable with configured seeds (mainly used in testing) |
8 | 9 … | var seeds = config.seeds |
9 | 10 … |
Built with git-ssb-web