diff --git a/Userland/Services/WebServer/main.cpp b/Userland/Services/WebServer/main.cpp index e050424cb71..573f690fbc7 100644 --- a/Userland/Services/WebServer/main.cpp +++ b/Userland/Services/WebServer/main.cpp @@ -35,8 +35,8 @@ int main(int argc, char** argv) } if ((u16)port != port) { - outln("Warning: Invalid port number: {}", port); - port = default_port; + warnln("Invalid port number: {}", port); + return 1; } auto real_root_path = Core::File::real_path_for(root_path);