Compare commits
	
		
			2 Commits
		
	
	
		
			c0f5e0cb17
			...
			93d1c0f8e2
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 93d1c0f8e2 | ||
|  | 12038465f6 | 
| @ -29,7 +29,7 @@ var dnspack = exports.DNS_PACKER = { | |||||||
|     dv.setUint16(10, (packet.additional||[]).length + (packet.payload ? 1 : 0), false); |     dv.setUint16(10, (packet.additional||[]).length + (packet.payload ? 1 : 0), false); | ||||||
| 
 | 
 | ||||||
|     function lint(r) { |     function lint(r) { | ||||||
|       if (!r.name) { |       if (!r.name && 'string' !== typeof r.name) { | ||||||
|         throw new Error("missing name"); |         throw new Error("missing name"); | ||||||
|       } |       } | ||||||
| 
 | 
 | ||||||
| @ -70,7 +70,8 @@ var dnspack = exports.DNS_PACKER = { | |||||||
|         labelsMap[total] = { total: total, name: sequence }; |         labelsMap[total] = { total: total, name: sequence }; | ||||||
|         labelsMap[sequence] = labelsMap[total]; |         labelsMap[sequence] = labelsMap[total]; | ||||||
|       } |       } | ||||||
|       sequence.split('.').forEach(function (label) { |       // allow 0-length string for TLD root NS queries
 | ||||||
|  |       (sequence && sequence.split('.') || []).forEach(function (label) { | ||||||
|         dv.setUint8(total, label.length, false); |         dv.setUint8(total, label.length, false); | ||||||
|         total += 1; |         total += 1; | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -1,6 +1,6 @@ | |||||||
| { | { | ||||||
|   "name": "dns-suite", |   "name": "dns-suite", | ||||||
|   "version": "1.2.10", |   "version": "1.2.11", | ||||||
|   "description": "testing dns", |   "description": "testing dns", | ||||||
|   "main": "dns.js", |   "main": "dns.js", | ||||||
|   "homepage": "https://git.coolaj86.com/coolaj86/dns-suite.js", |   "homepage": "https://git.coolaj86.com/coolaj86/dns-suite.js", | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user