diff --git a/minimal-examples/http-server/minimal-http-server-dynamic/minimal-http-server-dynamic.c b/minimal-examples/http-server/minimal-http-server-dynamic/minimal-http-server-dynamic.c index bb537ebe9..14c363dde 100644 --- a/minimal-examples/http-server/minimal-http-server-dynamic/minimal-http-server-dynamic.c +++ b/minimal-examples/http-server/minimal-http-server-dynamic/minimal-http-server-dynamic.c @@ -52,6 +52,9 @@ callback_dynamic_http(struct lws *wsi, enum lws_callback_reasons reason, /* in contains the url part after our mountpoint /dyn, if any */ lws_snprintf(pss->path, sizeof(pss->path), "%s", (const char *)in); + lws_get_peer_simple(wsi, (char *)buf, sizeof(buf)); + lwsl_notice("%s: HTTP: connection %s\n", __func__, (const char *)buf); + /* * prepare and write http headers... with regards to content- * length, there are three approaches: