mirror of
				https://github.com/therootcompany/greenlock-express.js.git
				synced 2024-11-16 17:28:59 +00:00 
			
		
		
		
	v2.4.3: only print default message if there are no 'listening' listeners
This commit is contained in:
		
							parent
							
								
									1dae4248c3
								
							
						
					
					
						commit
						b4d72bbd13
					
				
							
								
								
									
										4
									
								
								index.js
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								index.js
									
									
									
									
									
								
							| @ -119,7 +119,7 @@ module.exports.create = function (opts) { | ||||
|       // Report plain http status
 | ||||
|       if ('function' === typeof fnPlain) { | ||||
|         fnPlain.apply(plainServer); | ||||
|       } else if (!fn && plainServer.listenerCount('listening') < 2) { | ||||
|       } else if (!fn && !plainServer.listenerCount('listening') && !server.listenerCount('listening')) { | ||||
|         console.info('[:' + (plainServer.address().port || plainServer.address()) | ||||
|           + "] Handling ACME challenges and redirecting to " + server.type); | ||||
|       } | ||||
| @ -127,7 +127,7 @@ module.exports.create = function (opts) { | ||||
|       // Report h2/https status
 | ||||
|       if ('function' === typeof fn) { | ||||
|         fn.apply(server); | ||||
|       } else if (server.listenerCount('listening') < 2) { | ||||
|       } else if (!server.listenerCount('listening')) { | ||||
|         console.info('[:' + (server.address().port || server.address()) + "] Serving " + server.type); | ||||
|       } | ||||
|     }); | ||||
|  | ||||
| @ -1,6 +1,6 @@ | ||||
| { | ||||
|   "name": "greenlock-express", | ||||
|   "version": "2.4.2", | ||||
|   "version": "2.4.3", | ||||
|   "description": "Free SSL and managed or automatic HTTPS for node.js with Express, Koa, Connect, Hapi, and all other middleware systems.", | ||||
|   "main": "index.js", | ||||
|   "homepage": "https://git.coolaj86.com/coolaj86/greenlock-express.js", | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user