Compare commits
No commits in common. "93d1c0f8e26f4e29d22b51e2c4f22203888e38d4" and "c0f5e0cb173c49dc86b6f34b4dd0dcf9af593805" have entirely different histories.
93d1c0f8e2
...
c0f5e0cb17
|
@ -29,7 +29,7 @@ var dnspack = exports.DNS_PACKER = {
|
|||
dv.setUint16(10, (packet.additional||[]).length + (packet.payload ? 1 : 0), false);
|
||||
|
||||
function lint(r) {
|
||||
if (!r.name && 'string' !== typeof r.name) {
|
||||
if (!r.name) {
|
||||
throw new Error("missing name");
|
||||
}
|
||||
|
||||
|
@ -70,8 +70,7 @@ var dnspack = exports.DNS_PACKER = {
|
|||
labelsMap[total] = { total: total, name: sequence };
|
||||
labelsMap[sequence] = labelsMap[total];
|
||||
}
|
||||
// allow 0-length string for TLD root NS queries
|
||||
(sequence && sequence.split('.') || []).forEach(function (label) {
|
||||
sequence.split('.').forEach(function (label) {
|
||||
dv.setUint8(total, label.length, false);
|
||||
total += 1;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "dns-suite",
|
||||
"version": "1.2.11",
|
||||
"version": "1.2.10",
|
||||
"description": "testing dns",
|
||||
"main": "dns.js",
|
||||
"homepage": "https://git.coolaj86.com/coolaj86/dns-suite.js",
|
||||
|
|
Loading…
Reference in New Issue