mirror of https://github.com/embarklabs/embark.git
make proxy mode the default
This commit is contained in:
parent
c8eab0d88a
commit
a4a812e7b1
|
@ -75,7 +75,9 @@ var Blockchain = function(options) {
|
||||||
};
|
};
|
||||||
|
|
||||||
Blockchain.prototype.setupProxy = function() {
|
Blockchain.prototype.setupProxy = function() {
|
||||||
if(this.blockchainConfig.proxy){
|
if (this.blockchainConfig.proxy === false) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const proxy = require('../../core/proxy');
|
const proxy = require('../../core/proxy');
|
||||||
const Ipc = require('../../core/ipc');
|
const Ipc = require('../../core/ipc');
|
||||||
|
|
||||||
|
@ -85,7 +87,6 @@ Blockchain.prototype.setupProxy = function(){
|
||||||
proxy.serve(ipcObject, this.config.wsHost, this.config.wsPort, true);
|
proxy.serve(ipcObject, this.config.wsHost, this.config.wsPort, true);
|
||||||
this.config.rpcPort += 10;
|
this.config.rpcPort += 10;
|
||||||
this.config.wsPort += 10;
|
this.config.wsPort += 10;
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Blockchain.prototype.runCommand = function(cmd, options, callback) {
|
Blockchain.prototype.runCommand = function(cmd, options, callback) {
|
||||||
|
|
Loading…
Reference in New Issue