This commit is contained in:
AJ ONeal 2016-09-29 20:28:37 -04:00
parent 2c9bfc52c9
commit e8b1f11d01
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ module.exports.pack = function (address, data) {
var version = 1; var version = 1;
var header = Buffer.from([ var header = Buffer.from([
/*servername,*/ address.family, address.address, address.port, data.byteLength /*servername,*/ address.family, address.address, address.port, data.byteLength
, (data.service || 'https') , (address.service || '')
].join(',')); ].join(','));
var meta = Buffer.from([ 255 - version, header.length ]); var meta = Buffer.from([ 255 - version, header.length ]);
var buf = Buffer.alloc(meta.byteLength + header.byteLength + data.byteLength); var buf = Buffer.alloc(meta.byteLength + header.byteLength + data.byteLength);