diff --git a/lib/axe.js b/lib/axe.js index 81fe8c1d..1d84382d 100644 --- a/lib/axe.js +++ b/lib/axe.js @@ -9,7 +9,7 @@ function start(root){ if(root.axe){ return } var opt = root.opt, peers = opt.peers; if(false === opt.axe){ return } - if((typeof process !== "undefined") && 'false' === ''+(process.env||'').AXE){ return } + if((typeof process !== "undefined") && 'false' === ''+(opt.env=process.env||'').AXE){ return } Gun.log.once("AXE", "AXE relay enabled!"); var axe = root.axe = {}, tmp, id; var mesh = opt.mesh = opt.mesh || Gun.Mesh(root); // DAM! @@ -219,7 +219,7 @@ function start(root){ The mob threshold might be determined by other factors, like how much RAM or CPU stress we have. */ - opt.mob = opt.mob || 9900; // should be based on ulimit, some clouds as low as 10K. + opt.mob = opt.mob || parseFloat((opt.env||'').MOB) || 9900; // should be based on ulimit, some clouds as low as 10K. // handle rebalancing a mob of peers: root.on('hi', function(peer){