Small Pool.options defaults cleanup

This commit is contained in:
William Wolf 2015-02-18 22:49:04 -08:00
parent 06f285fc9f
commit e1f2fbb7ed

View File

@ -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) {