Skip to content

Commit

Permalink
Merge pull request #61 from ipfs/feature/add-option-gateway-addr
Browse files Browse the repository at this point in the history
add option for gateway addr
  • Loading branch information
daviddias committed Feb 22, 2016
2 parents b133331 + 3d13e48 commit 41fcd2c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 41fcd2c

Please sign in to comment.