forked from LittleChest/dns-packet
fix fallback for CAA flags
This commit is contained in:
parent
a39813b2d5
commit
e44b28c817
4
index.js
4
index.js
@ -337,13 +337,11 @@ rcaa.encode = function (data, buf, offset) {
|
|||||||
|
|
||||||
if (data.issuerCritical) {
|
if (data.issuerCritical) {
|
||||||
data.flags = rcaa.ISSUER_CRITICAL
|
data.flags = rcaa.ISSUER_CRITICAL
|
||||||
} else {
|
|
||||||
data.flags = 0
|
|
||||||
}
|
}
|
||||||
|
|
||||||
buf.writeUInt16BE(len - 2, offset)
|
buf.writeUInt16BE(len - 2, offset)
|
||||||
offset += 2
|
offset += 2
|
||||||
buf.writeUInt8(data.flags, offset)
|
buf.writeUInt8(data.flags || 0, offset)
|
||||||
offset += 1
|
offset += 1
|
||||||
string.encode(data.tag, buf, offset)
|
string.encode(data.tag, buf, offset)
|
||||||
offset += string.encode.bytes
|
offset += string.encode.bytes
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user