mirror of https://github.com/embarklabs/embark.git
support nodiscover option; add warnings to cors settings
This commit is contained in:
parent
1080c260a7
commit
ab42ae92d5
|
@ -95,13 +95,21 @@ GethCommands.prototype.mainCommand = function(address) {
|
|||
cmd += "--rpcport " + config.rpcPort + " ";
|
||||
cmd += "--rpcaddr " + config.rpcHost + " ";
|
||||
if (config.rpcCorsDomain) {
|
||||
// TODO: show gigantic warning when cors is set to *
|
||||
if (config.rpcCorsDomain === '*') {
|
||||
console.log('==================================');
|
||||
console.log('make sure you know what you are doing');
|
||||
console.log('==================================');
|
||||
}
|
||||
cmd += "--rpccorsdomain=\"" + config.rpcCorsDomain + "\" ";
|
||||
} else {
|
||||
// TODO: show warning when cors is not set
|
||||
console.log('==================================');
|
||||
console.log('warning: cors is not set');
|
||||
console.log('==================================');
|
||||
}
|
||||
|
||||
//"nodiscover": true,
|
||||
if (config.nodiscover) {
|
||||
cmd += "--nodiscover ";
|
||||
}
|
||||
|
||||
if (config.mineWhenNeeded || config.mine) {
|
||||
cmd += "--mine ";
|
||||
|
|
Loading…
Reference in New Issue