This commit is contained in:
Daplie 2017-02-02 14:11:45 -07:00
parent 7dead01aae
commit 41410f8f86
1 changed files with 0 additions and 15 deletions

View File

@ -10,21 +10,6 @@
var unpackLabels = exports.DNS_UNPACK_LABELS || require('./dns.unpack-labels.js').DNS_UNPACK_LABELS;
exports.DNS_TYPE_TXT = function (ab, pack, record) {
var rdataAb = ab.slice(record.rdstart, record.rdstart + record.rdlength);
var dv = new DataView(rdataAb);
var s = '';
var data = '';
for (var i = 0; i < dv.byteLength; i +=1){
s = dv.getUint8(i, false);
data = String.fromCharCode(s);
console.log("data at " + i + " is: " + data);
}
return unpackLabels(new Uint8Array(ab), record.rdstart, { byteLength: 0, cpcount: 0, labels: [], name: '' }).name;
};
}('undefined' !== typeof window ? window : exports));