Small Pool.options defaults cleanup
This commit is contained in:
parent
06f285fc9f
commit
e1f2fbb7ed
@ -49,9 +49,9 @@ function Pool(network, options) {
|
||||
this._connectedPeers = {};
|
||||
this._addrs = [];
|
||||
|
||||
this.listenAddr = options.listenAddr === false ? false : true;
|
||||
this.dnsSeed = options.dnsSeed === false ? false : true;
|
||||
this.relay = options.relay === false ? false : true;
|
||||
this.listenAddr = options.listenAddr !== false;
|
||||
this.dnsSeed = options.dnsSeed !== false;
|
||||
this.relay = options.relay !== false;
|
||||
this.maxSize = options.maxSize || Pool.MaxConnectedPeers;
|
||||
|
||||
if (options.addrs) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user