http/pool: more options fixes.

This commit is contained in:
Christopher Jeffrey 2017-01-23 03:58:47 -08:00
parent dc9f31f36f
commit 30ab5c2a88
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
3 changed files with 5 additions and 4 deletions

View File

@ -34,7 +34,7 @@ log-file: true
witness: true witness: true
prune: false prune: false
use-checkpoints: true checkpoints: true
coin-cache: 40 coin-cache: 40
index-tx: false index-tx: false
index-address: false index-address: false
@ -71,7 +71,7 @@ host: ::
# port: 8333 # port: 8333
# Public Host & Port (to advertise to peers) # Public Host & Port (to advertise to peers)
# public-host: 0.0.0.0 # public-host: 1.2.3.4
# public-port: 8444 # public-port: 8444
# BIP151 AuthDB and Identity Key # BIP151 AuthDB and Identity Key
@ -101,4 +101,4 @@ http-host: ::
service-key: bikeshed service-key: bikeshed
api-key: bikeshed api-key: bikeshed
wallet-auth: false wallet-auth: false
no-auth: false # no-auth: false

View File

@ -1785,7 +1785,7 @@ HTTPOptions.prototype.fromOptions = function fromOptions(options) {
// Allow no-auth implicitly // Allow no-auth implicitly
// if we're listening locally. // if we're listening locally.
if (!options.apiKey && !options.serviceKey) { if (!options.apiKey && !options.serviceKey && options.noAuth == null) {
if (IP.isLoopback(this.host)) if (IP.isLoopback(this.host))
this.noAuth = true; this.noAuth = true;
} }

View File

@ -3162,6 +3162,7 @@ function PoolOptions(options) {
this.nonces = new NonceList(); this.nonces = new NonceList();
this.address = new NetAddress(); this.address = new NetAddress();
this.address.port = this.network.port;
this.witness = true; this.witness = true;
this.checkpoints = false; this.checkpoints = false;