http: fix addr array.

This commit is contained in:
Christopher Jeffrey 2016-12-06 00:04:04 -08:00
parent 4e4dbfba49
commit d2e9843757
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -405,6 +405,7 @@ HTTPServer.prototype._init = function _init() {
address = params.address[i];
enforce(typeof address === 'string', 'Address must be a string.');
address = Address.fromBase58(address);
options.address.push(address);
}
} else {
enforce(typeof params.address === 'string',