From 645c4c654c3ec6ce7c3e23a0e3308f26d4d8bdd2 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 28 Jan 2017 13:32:55 -0700 Subject: [PATCH] receive correct object --- dns.type.a.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dns.type.a.js b/dns.type.a.js index c80218e..0d70dd2 100644 --- a/dns.type.a.js +++ b/dns.type.a.js @@ -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];