aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/blogc-runserver/httpd.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/blogc-runserver/httpd.c b/src/blogc-runserver/httpd.c
index 81bf252..af531b0 100644
--- a/src/blogc-runserver/httpd.c
+++ b/src/blogc-runserver/httpd.c
@@ -259,11 +259,13 @@ br_httpd_run(const char *host, unsigned short port, const char *docroot,
goto cleanup;
}
- fprintf(stderr,
- " * Running on http://%s:%d/ (max threads: %zu)\n"
+ fprintf(stderr, " * Running on http://%s", host);
+ if (port != 80)
+ fprintf(stderr, ":%hu", port);
+ fprintf(stderr, "/ (max threads: %zu)\n"
"\n"
"WARNING!!! This is a development server, DO NOT RUN IT IN PRODUCTION!\n"
- "\n", host, port, max_threads);
+ "\n", max_threads);
socklen_t len = sizeof(struct sockaddr_in);