mirror of
				https://github.com/therootcompany/greenlock.js.git
				synced 2024-11-16 17:29:00 +00:00 
			
		
		
		
	v2.6.5: don't allow IP addresses
This commit is contained in:
		
							parent
							
								
									fcb3b659cd
								
							
						
					
					
						commit
						911d05bb24
					
				
							
								
								
									
										3
									
								
								index.js
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								index.js
									
									
									
									
									
								
							| @ -393,6 +393,9 @@ Greenlock.create = function (gl) { | |||||||
|           if (!gl.approvedDomains.length) { |           if (!gl.approvedDomains.length) { | ||||||
|             throw new Error("le-sni-auto is not properly configured. Missing approveDomains(domain, certs, callback)"); |             throw new Error("le-sni-auto is not properly configured. Missing approveDomains(domain, certs, callback)"); | ||||||
|           } |           } | ||||||
|  |           if (!/[a-z]/i.test(lexOpts.domain)) { | ||||||
|  |             throw new Error("le-sni-auto does not allow IP addresses by default"); | ||||||
|  |           } | ||||||
| 
 | 
 | ||||||
|           if (!Array.isArray(gl.approvedDomains)) { |           if (!Array.isArray(gl.approvedDomains)) { | ||||||
|             // The acme-v2 package uses pre-flight test challenges to
 |             // The acme-v2 package uses pre-flight test challenges to
 | ||||||
|  | |||||||
| @ -1,6 +1,6 @@ | |||||||
| { | { | ||||||
|   "name": "greenlock", |   "name": "greenlock", | ||||||
|   "version": "2.6.4", |   "version": "2.6.5", | ||||||
|   "description": "Let's Encrypt for node.js on npm", |   "description": "Let's Encrypt for node.js on npm", | ||||||
|   "main": "index.js", |   "main": "index.js", | ||||||
|   "files": [ |   "files": [ | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user