http/pool: more options fixes.
This commit is contained in:
parent
dc9f31f36f
commit
30ab5c2a88
@ -34,7 +34,7 @@ log-file: true
|
||||
|
||||
witness: true
|
||||
prune: false
|
||||
use-checkpoints: true
|
||||
checkpoints: true
|
||||
coin-cache: 40
|
||||
index-tx: false
|
||||
index-address: false
|
||||
@ -71,7 +71,7 @@ host: ::
|
||||
# port: 8333
|
||||
|
||||
# Public Host & Port (to advertise to peers)
|
||||
# public-host: 0.0.0.0
|
||||
# public-host: 1.2.3.4
|
||||
# public-port: 8444
|
||||
|
||||
# BIP151 AuthDB and Identity Key
|
||||
@ -101,4 +101,4 @@ http-host: ::
|
||||
service-key: bikeshed
|
||||
api-key: bikeshed
|
||||
wallet-auth: false
|
||||
no-auth: false
|
||||
# no-auth: false
|
||||
|
||||
@ -1785,7 +1785,7 @@ HTTPOptions.prototype.fromOptions = function fromOptions(options) {
|
||||
|
||||
// Allow no-auth implicitly
|
||||
// if we're listening locally.
|
||||
if (!options.apiKey && !options.serviceKey) {
|
||||
if (!options.apiKey && !options.serviceKey && options.noAuth == null) {
|
||||
if (IP.isLoopback(this.host))
|
||||
this.noAuth = true;
|
||||
}
|
||||
|
||||
@ -3162,6 +3162,7 @@ function PoolOptions(options) {
|
||||
|
||||
this.nonces = new NonceList();
|
||||
this.address = new NetAddress();
|
||||
this.address.port = this.network.port;
|
||||
|
||||
this.witness = true;
|
||||
this.checkpoints = false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user