mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-17 10:49:47 +00:00
Do not set c->label for DNS connections - let labels be user-only-settable
This commit is contained in:
1 parent
6ad4d242c2
commit
b0585bd0a9
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user