BCOIN_URL for bcoin-cli.

This commit is contained in:
Christopher Jeffrey 2016-04-08 15:06:01 -07:00
parent 8131d52658
commit 747958fd36
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -7,7 +7,7 @@ var utils = bcoin.utils;
var assert = utils.assert;
var Client = bcoin.http.client;
var client = new Client(argv.url || 'localhost:8080');
var client = new Client(argv.url || process.env.BCOIN_URL || 'localhost:8080');
function getID() {
if (process.env.BCOIN_WALLET_ID)