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

@ -80,6 +80,10 @@ Blockchain.prototype.run_command = function(address, use_tmp) {
if (address !== void 0) { if (address !== void 0) {
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 \"";