finished PTR parser
This commit is contained in:
parent
e8edc20080
commit
88e6779641
|
@ -10,8 +10,9 @@
|
|||
// ame ttl class rr name
|
||||
// 15 IN PTR www.example.com.
|
||||
|
||||
exports.DNS_TYPE_PTR = function (rdata) {
|
||||
|
||||
var unpackLabels = exports.DNS_UNPACK_LABELS || require('./dns.unpack-labels.js').DNS_UNPACK_LABELS;
|
||||
exports.DNS_TYPE_PTR = function (ab, pack, record) {
|
||||
|
||||
return unpackLabels(new Uint8Array(ab), record.rdstart, { byteLength: 0, cpcount: 0, labels: [], name: '' }).name;
|
||||
};
|
||||
}('undefined' !== typeof window ? window : exports));
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue