Watch for BITCOIND_P2P_HOST for different server than BITCOIND_HOST for RPC

This commit is contained in:
lordhelmut 2014-07-25 14:29:00 -07:00
parent c05761b98b
commit 496999644b
2 changed files with 2 additions and 1 deletions

View File

@ -71,6 +71,7 @@ var bitcoindConf = {
host: process.env.BITCOIND_HOST || '127.0.0.1',
port: process.env.BITCOIND_PORT || b_port,
p2pPort: process.env.BITCOIND_P2P_PORT || p2p_port,
p2pHost: process.env.BITCOIND_P2P_HOST || process.env.BITCOIND_HOST || '127.0.0.1',
dataDir: dataDir,
// DO NOT CHANGE THIS!
disableAgent: true

View File

@ -27,7 +27,7 @@ function PeerSync(opts) {
PeerSync.prototype.load_peers = function() {
this.peerdb = [{
ipv4: config.bitcoind.host,
ipv4: config.bitcoind.p2pHost,
port: config.bitcoind.p2pPort
}];