From da9cd323668938f4cb7c3407c6dca8bc85ec526d Mon Sep 17 00:00:00 2001 From: Maartje Eyskens Date: Sat, 20 Feb 2016 15:59:09 +0100 Subject: [PATCH] Allow short IPv6 Allow short IPv6 notation to be sent --- encode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/encode.js b/encode.js index d0aa06f..8c9b4dd 100644 --- a/encode.js +++ b/encode.js @@ -129,7 +129,7 @@ State.prototype.record = function(section_name, record) { break case 'IN AAAA': rdata = (record.data || '').split(/:/) - if(rdata.length != 8) + if(rdata.length < 2) throw new Error('Bad '+record.type+' record data: ' + JSON.stringify(record)) rdata = rdata.map(pair_to_buf) break