From cc425b1b9835508746c4c4c767a464ea8ee6f647 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Sat, 12 Oct 2019 12:20:13 +0100 Subject: [PATCH] get_peer_simple: add to minimal-http-server-dynamic --- .../minimal-http-server-dynamic/minimal-http-server-dynamic.c | 3 +++ 1 file changed, 3 insertions(+) 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: