Mirror von
				https://github.com/therootcompany/acme.js.git
				synchronisiert 2024-11-16 17:29:00 +00:00 
			
		
		
		
	#11 skip challenge when valid
Dieser Commit ist enthalten in:
		
							Ursprung
							
								
									1af2fb2958
								
							
						
					
					
						Commit
						f0f9feb519
					
				
							
								
								
									
										11
									
								
								node.js
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								node.js
									
									
									
									
									
								
							| @ -637,6 +637,13 @@ ACME._getCertificate = function (me, options) { | |||||||
|               return results.challenges.some(function (ch) { |               return results.challenges.some(function (ch) { | ||||||
|                 return ch.type === chType; |                 return ch.type === chType; | ||||||
|               }); |               }); | ||||||
|  |             }).sort(function (aType, bType) { | ||||||
|  |               var a = results.challenges.filter(function (ch) { return ch.type === aType; })[0]; | ||||||
|  |               var b = results.challenges.filter(function (ch) { return ch.type === bType; })[0]; | ||||||
|  | 
 | ||||||
|  |               if ('valid' === a.status) { return 1; } | ||||||
|  |               if ('valid' === b.status) { return -1; } | ||||||
|  |               return 0; | ||||||
|             })[0]; |             })[0]; | ||||||
| 
 | 
 | ||||||
|             var challenge = results.challenges.filter(function (ch) { |             var challenge = results.challenges.filter(function (ch) { | ||||||
| @ -651,6 +658,10 @@ ACME._getCertificate = function (me, options) { | |||||||
|               )); |               )); | ||||||
|             } |             } | ||||||
| 
 | 
 | ||||||
|  |             if ("valid" === challenge.status) { | ||||||
|  |               return; | ||||||
|  |             } | ||||||
|  | 
 | ||||||
|             return ACME._postChallenge(me, options, results.identifier, challenge); |             return ACME._postChallenge(me, options, results.identifier, challenge); | ||||||
|           }).then(function () { |           }).then(function () { | ||||||
|             return next(); |             return next(); | ||||||
|  | |||||||
		Laden…
	
	
			
			x
			
			
		
	
		In neuem Issue referenzieren
	
	Einen Benutzer sperren