Do not set c->label for DNS connections - let labels be user-only-settable

This commit is contained in:
Sergey Lyubka committed 2022-01-05 11:46:26 +00:00
1 parent 6ad4d242c2
commit b0585bd0a9
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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;
}
}
+1 -1
View File
@@ -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;
}
}