mirror of https://github.com/louislam/uptime-kuma
				
				
				
			server.listen bind to ipv6 too
							parent
							
								
									d6fad7f1ef
								
							
						
					
					
						commit
						d93f6e2716
					
				| 
						 | 
				
			
			@ -41,7 +41,8 @@ const args = require("args-parser")(process.argv);
 | 
			
		|||
 | 
			
		||||
const version = require("../package.json").version;
 | 
			
		||||
 | 
			
		||||
// If host is omitted, the server will accept connections on the unspecified IPv6 address (::) when IPv6 is available, or the unspecified IPv4 address (0.0.0.0) otherwise.
 | 
			
		||||
// If host is omitted, the server will accept connections on the unspecified IPv6 address (::) when IPv6 is available and the unspecified IPv4 address (0.0.0.0) otherwise.
 | 
			
		||||
// Dual-stack support for (::)
 | 
			
		||||
const hostname = process.env.HOST || args.host;
 | 
			
		||||
 | 
			
		||||
const port = parseInt(process.env.PORT || args.port || 3001);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue