diff --git a/dns.type.txt.js b/dns.type.txt.js index 9310146..bbf3c16 100644 --- a/dns.type.txt.js +++ b/dns.type.txt.js @@ -22,9 +22,9 @@ exports.DNS_TYPE_TXT = function (ab, packet, record) { // console.log("data at: " + i + " is: " + string); - - // - record.data = unpackLabels(new Uint8Array(ab), record.rdstart, { byteLength: 0, cpcount: 0, labels: [], name: '' }).name; + + // + record.data = [ unpackLabels(new Uint8Array(ab), record.rdstart, { byteLength: 0, cpcount: 0, labels: [], name: '' }).name ]; var l = unpackLabels(new Uint8Array(ab), record.rdstart, { byteLength: 0, cpcount: 0, labels: [], name: '' }); diff --git a/test/parser.js b/test/parser.js index 297ba3a..9cc09a9 100644 --- a/test/parser.js +++ b/test/parser.js @@ -71,6 +71,8 @@ try { deepLike(expected, result); } catch(e) { + console.log('[RESULT]'); + console.log(JSON.stringify(result, null, 2)); console.error('[FAIL]', name); console.error(e.stack); console.log('');