make proxy mode the default

This commit is contained in:
Iuri Matias 2018-06-11 12:02:00 -04:00
parent c8eab0d88a
commit a4a812e7b1
1 changed files with 12 additions and 11 deletions

View File

@ -74,8 +74,10 @@ var Blockchain = function(options) {
this.client = new options.client({config: this.config, env: this.env, isDev: this.isDev});
};
Blockchain.prototype.setupProxy = function(){
if(this.blockchainConfig.proxy){
Blockchain.prototype.setupProxy = function() {
if (this.blockchainConfig.proxy === false) {
return;
}
const proxy = require('../../core/proxy');
const Ipc = require('../../core/ipc');
@ -85,7 +87,6 @@ Blockchain.prototype.setupProxy = function(){
proxy.serve(ipcObject, this.config.wsHost, this.config.wsPort, true);
this.config.rpcPort += 10;
this.config.wsPort += 10;
}
};
Blockchain.prototype.runCommand = function(cmd, options, callback) {