Browse Source
			 
			
			Prioritize port passed from args 
 
Co-authored-by: Adam Stachowicz <saibamenppl@gmail.com> 
			
			
				 
		
			
				
					
						giacomo892 
					
					4 years ago 
							GitHub 
							
						 
					
				 
				
			 
		 
		
			
				
					GPG Key ID:  
		
		
		
	
		
			
				 1 changed files  with 
1 additions  and 
1 deletions 
			 
			
		 
		
			
				
					
					
					  
					server/server.js 
				 
			
		 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
			
				
					
						
						
							
								 
						
						
					 
				
				@ -62,7 +62,7 @@ console.info("Version: " + checkVersion.version); 
			
		
	
		
			
				
					// 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  =  args . host  ||  process . env . HOST ;  
			
		
	
		
			
				
					const  port  =  parseInt ( process . env . PORT  ||  args . port   ||  3001 ) ;  
			
		
	
		
			
				
					const  port  =  parseInt ( args . port  ||  process . env . PORT  ||  3001 ) ;  
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					// SSL
  
			
		
	
		
			
				
					const  sslKey  =  process . env . SSL_KEY  ||  args [ "ssl-key" ]  ||  undefined ;