fix(config): fully disable p2p activity if option with p2p search disabled

This commit is contained in:
Alexey Kasyanchuk
2018-09-24 03:30:35 +03:00
parent acd549ea8f
commit 659a2aa002
2 changed files with 11 additions and 1 deletions

View File

@ -245,7 +245,7 @@ module.exports = function (send, recive, dataDirectory, version, env)
})
let p2pBootstrapLoop = null
if(config.p2pBootstrap)
if(config.p2p && config.p2pBootstrap)
{
const loadBootstrapPeers = async (url) => {
const json = await getServiceJson(url)