explicitly listen to all IPv4 interfaces
This commit is contained in:
		
							parent
							
								
									d42811f152
								
							
						
					
					
						commit
						4055084cb5
					
				
							
								
								
									
										8
									
								
								index.js
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								index.js
									
									
									
									
									
								
							@ -193,6 +193,10 @@ app.get("/api/users/:_id/logs", (req, res) => {
 | 
				
			|||||||
    });
 | 
					    });
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const listener = app.listen(PORT, () => {
 | 
					const listener = app.listen(PORT, "0.0.0.0" () => {
 | 
				
			||||||
  console.log("Your app is listening on port " + listener.address().port);
 | 
					    console.log(
 | 
				
			||||||
 | 
					    `Your app is listening on interface ${
 | 
				
			||||||
 | 
					      listener.address().address
 | 
				
			||||||
 | 
					    } and port ${listener.address().port}`
 | 
				
			||||||
 | 
					  );
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user