mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-28 21:54:40 +03: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
Notes:
sideshowbarker
2024-07-16 23:52:10 +09:00
Author: https://github.com/tcl3 Commit: https://github.com/SerenityOS/serenity/commit/f02ccffaa8 Pull-request: https://github.com/SerenityOS/serenity/pull/19518
@ -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…
Reference in New Issue
Block a user