remove logs
This commit is contained in:
parent
8d1cb165ae
commit
12093c52d3
|
@ -13,17 +13,10 @@ 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);
|
||||||
|
@ -32,7 +25,6 @@ exports.DNS_PACKER_TYPE_TXT = function (ab, dv, total, record) {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
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;
|
||||||
|
|
Loading…
Reference in New Issue