mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 15:12:45 +00:00 
			
		
		
		
	WebServer: Show the correct port when using port 0
Specifying port 0 on the command line causes WebServer to select a random available port. We now show the port WebServer is actually using rather than assuming it is the same as the command line argument.
This commit is contained in:
		
							parent
							
								
									e5685078c1
								
							
						
					
					
						commit
						f02ccffaa8
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -96,8 +96,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) | |||
|     TRY(server->listen(ipv4_address.value(), port)); | ||||
| 
 | ||||
|     out("Listening on "); | ||||
|     out("\033]8;;http://{}:{}\033\\", ipv4_address.value(), port); | ||||
|     out("{}:{}", ipv4_address.value(), port); | ||||
|     out("\033]8;;http://{}:{}\033\\", ipv4_address.value(), server->local_port()); | ||||
|     out("{}:{}", ipv4_address.value(), server->local_port()); | ||||
|     outln("\033]8;;\033\\"); | ||||
| 
 | ||||
|     TRY(Core::System::unveil("/etc/timezone", "r")); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Tim Ledbetter
						Tim Ledbetter