Comparing version 0.9.6 to 0.9.7
@@ -132,3 +132,8 @@ // Copyright 2012 Iris Couch, all rights reserved. | ||
rdata = (record.data || '').split(/:/) | ||
if(rdata.length != 8) | ||
// If we get a raw IPv6 address, patch it | ||
if(rdata.length === 6) { | ||
record.data = record.data.replace('::', ':0:0:0:'); | ||
rdata = (record.data || '').split(/:/) | ||
} | ||
if(rdata.length !== 8) | ||
throw new Error('Bad '+record.type+' record data: ' + JSON.stringify(record)) | ||
@@ -207,3 +212,3 @@ rdata = rdata.map(pair_to_buf) | ||
var domain = full_domain | ||
var domain = full_domain || ''; | ||
domain = domain.replace(/\.$/, '') // Strip the trailing dot. | ||
@@ -210,0 +215,0 @@ position = self.position + (position_offset || 0) |
@@ -5,3 +5,3 @@ { "name": "hbo-dnsd" | ||
, "keywords": [ "dns", "bind", "dnsd", "iris" ] | ||
, "version": "0.9.6" | ||
, "version": "0.9.7" | ||
, "author": "Jason Smith <jhs@iriscouch.com> (http://www.iriscouch.com)" | ||
@@ -8,0 +8,0 @@ , "repository": { "type":"git", "url":"https://github.com/hbouvier/dnsd" } |
83508
1675