From: Shuanglei Tao Date: Mon, 19 Jun 2023 00:59:52 +0000 (+0800) Subject: server: print working directory on start X-Git-Url: http://git.prime8.dev/?a=commitdiff_plain;h=eb52df73226b7754db8116a6eb3d85897438479f;p=ttyd.git server: print working directory on start --- diff --git a/src/server.c b/src/server.c index 541f8d4..9c8f118 100644 --- a/src/server.c +++ b/src/server.c @@ -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"); }