From ac268c0cd7e0d6d13858bd16fefffa0d54becd09 Mon Sep 17 00:00:00 2001 From: VoR0220 Date: Tue, 20 Oct 2015 23:07:52 -0500 Subject: [PATCH] add NAT options --- lib/blockchain.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/blockchain.js b/lib/blockchain.js index 45b748ae1..1a986df08 100644 --- a/lib/blockchain.js +++ b/lib/blockchain.js @@ -80,6 +80,10 @@ Blockchain.prototype.run_command = function(address, use_tmp) { if (address !== void 0) { cmd += "--unlock " + address + " "; } + + if (config.nat !== "any"){ + cmd += "--nat \"" + config.nat "\""; + } if (config.bootNodes.boot == true){ cmd += "--bootnodes \"";