From 3d13e4866827a1bd5050251257a9a0a1277871c4 Mon Sep 17 00:00:00 2001 From: David Dias Date: Mon, 22 Feb 2016 16:23:04 +0000 Subject: [PATCH] add option for gateway addr --- index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.js b/index.js index 73e8b847..c0809d90 100644 --- a/index.js +++ b/index.js @@ -47,6 +47,10 @@ module.exports = { opts['Addresses.API'] = opts.apiAddr } + if (opts.gatewayAddr) { + opts['Addresses.Gateway'] = opts.gatewayAddr + } + const node = new Node(opts.repoPath || tempDir(), opts, true) if (typeof opts.init === 'boolean' && opts.init === false) {