add NAT options

This commit is contained in:
VoR0220 2015-10-20 23:07:52 -05:00 committed by Iuri Matias
parent 94276e8407
commit ac268c0cd7
1 changed files with 4 additions and 0 deletions

View File

@ -81,6 +81,10 @@ Blockchain.prototype.run_command = function(address, use_tmp) {
cmd += "--unlock " + address + " "; cmd += "--unlock " + address + " ";
} }
if (config.nat !== "any"){
cmd += "--nat \"" + config.nat "\"";
}
if (config.bootNodes.boot == true){ if (config.bootNodes.boot == true){
cmd += "--bootnodes \""; cmd += "--bootnodes \"";
for (var i = 0; i < config.bootNodes.enodes.length; i++){ for (var i = 0; i < config.bootNodes.enodes.length; i++){