cleanup
This commit is contained in:
parent
7dead01aae
commit
41410f8f86
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue