remove logs

This commit is contained in:
AJ ONeal 2017-09-25 15:57:40 -06:00
parent 8d1cb165ae
commit 12093c52d3
1 changed files with 1 additions and 9 deletions

View File

@ -13,26 +13,18 @@ exports.DNS_PACKER_TYPE_TXT = function (ab, dv, total, record) {
total += 3; total += 3;
// RDATA // RDATA
console.log("what is my record data: " + typeof record.data[0]);
console.log("what are my labels? ");
// var res = record.data[0].split(" ");
// console.log("Res: " + res);
console.log("for each rdata");
record.data.forEach(function(str){ record.data.forEach(function(str){
str.split('').forEach(function(ch){ str.split('').forEach(function(ch){
txtLen += 1; txtLen += 1;
// console.log(chcim); // console.log(chcim);
dv.setUint8(total, ch.charCodeAt(0), false); dv.setUint8(total, ch.charCodeAt(0), false);
total += 1; total += 1;
}); });
}); });
console.log("txt rdata length is: " + txtLen);
dv.setUint16(rdLenIndex, txtLen+1, false); dv.setUint16(rdLenIndex, txtLen+1, false);
dv.setUint8(rdLenIndex+2, txtLen, false); dv.setUint8(rdLenIndex+2, txtLen, false);
// total +=1; // total +=1;