]> prime8.dev >> repos - ttyd.git/commitdiff
server: print working directory on start
authorShuanglei Tao <tsl0922@gmail.com>
Mon, 19 Jun 2023 00:59:52 +0000 (08:59 +0800)
committerShuanglei Tao <tsl0922@gmail.com>
Mon, 19 Jun 2023 00:59:52 +0000 (08:59 +0800)
src/server.c

index 541f8d4499d9acb4484ce9ddffd026323148f885..9c8f118e8396913962e04deae2be60cb49654292 100644 (file)
@@ -151,6 +151,7 @@ static void print_config() {
   if (server->max_clients > 0) lwsl_notice("  max clients: %d\n", server->max_clients);
   if (server->once) lwsl_notice("  once: true\n");
   if (server->index != NULL) lwsl_notice("  custom index.html: %s\n", server->index);
+  if (server->cwd != NULL) lwsl_notice("  working directory: %s\n", server->cwd);
   if (!server->writable) lwsl_notice("The --writable option is not set, will start in readonly mode");
 }