From b0585bd0a9d02ef763a4c7c331053d09dad33078 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Wed, 5 Jan 2022 11:46:26 +0000 Subject: [PATCH] Do not set c->label for DNS connections - let labels be user-only-settable --- mongoose.c | 2 +- src/dns.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mongoose.c b/mongoose.c index 126e58d0..b1c5719a 100644 --- a/mongoose.c +++ b/mongoose.c @@ -341,7 +341,7 @@ static void mg_sendnsreq(struct mg_connection *c, struct mg_str *name, int ms, dnsc->c = mg_connect(c->mgr, dnsc->url, NULL, NULL); if (dnsc->c != NULL) { dnsc->c->pfn = dns_cb; - snprintf(dnsc->c->label, sizeof(dnsc->c->label), "%s", "DNS"); + // snprintf(dnsc->c->label, sizeof(dnsc->c->label), "%s", "DNS"); // dnsc->c->is_hexdumping = 1; } } diff --git a/src/dns.c b/src/dns.c index 36a5cdcd..7a2cb23a 100644 --- a/src/dns.c +++ b/src/dns.c @@ -231,7 +231,7 @@ static void mg_sendnsreq(struct mg_connection *c, struct mg_str *name, int ms, dnsc->c = mg_connect(c->mgr, dnsc->url, NULL, NULL); if (dnsc->c != NULL) { dnsc->c->pfn = dns_cb; - snprintf(dnsc->c->label, sizeof(dnsc->c->label), "%s", "DNS"); + // snprintf(dnsc->c->label, sizeof(dnsc->c->label), "%s", "DNS"); // dnsc->c->is_hexdumping = 1; } }