receive correct object

This commit is contained in:
AJ ONeal 2017-01-28 13:32:55 -07:00
parent d9bbacb0dc
commit 645c4c654c
1 changed files with 2 additions and 2 deletions

View File

@ -3,8 +3,8 @@
// An 'A' record is a 32-bit value representing the IP address
exports.DNS_TYPE_A = function (ab, packet, rdata) {
var ui8 = new Uint8Array(rdata);
exports.DNS_TYPE_A = function (ab, packet, record) {
var ui8 = record.rdata;
// i.e. 127.0.0.1
return ui8[0] + '.' + ui8[1] + '.' + ui8[2] + '.' + ui8[3];