chimney (burn some logs)
This commit is contained in:
		
							parent
							
								
									de051dd3a2
								
							
						
					
					
						commit
						8d464d6810
					
				@ -119,7 +119,6 @@ function wrapDefaultSniCallback(opts, greenlock, secureOpts) {
 | 
			
		||||
function createSecureServer(secureOpts, fn) {
 | 
			
		||||
	var major = process.versions.node.split(".")[0];
 | 
			
		||||
 | 
			
		||||
	console.log("debug set SNICallback:", secureOpts);
 | 
			
		||||
	// TODO can we trust earlier versions as well?
 | 
			
		||||
	if (major >= 12) {
 | 
			
		||||
		secureOpts.allowHTTP1 = true;
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										1
									
								
								sni.js
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								sni.js
									
									
									
									
									
								
							@ -122,7 +122,6 @@ sni.create = function(opts, greenlock, secureOpts) {
 | 
			
		||||
		// TODO don't get unknown certs at all, rely on auto-updates from greenlock
 | 
			
		||||
		// Note: greenlock.renew() will return an existing fresh cert or issue a new one
 | 
			
		||||
		return greenlock.renew({ servername: servername }).then(function(matches) {
 | 
			
		||||
			console.log("debug matches", matches);
 | 
			
		||||
			var meta = getCachedMeta(servername);
 | 
			
		||||
			if (!meta) {
 | 
			
		||||
				meta = _cache[servername] = { secureContext: {} };
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user