From: Daniel Salzman Date: Thu, 9 Oct 2025 11:41:45 +0000 (+0200) Subject: process-query: hide custom EDNS (workaround) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff53f47aa3eb4c51a22e7318f8299f8f8d02faa1;p=thirdparty%2Fknot-dns.git process-query: hide custom EDNS (workaround) --- diff --git a/src/knot/nameserver/process_query.c b/src/knot/nameserver/process_query.c index 8ad684c784..049580ef99 100644 --- a/src/knot/nameserver/process_query.c +++ b/src/knot/nameserver/process_query.c @@ -302,7 +302,7 @@ static int answer_edns_init(const knot_pkt_t *query, knot_pkt_t *resp, if (knot_pkt_has_dnssec(query)) { knot_edns_set_do(&qdata->opt_rr); } - +#if 0 /* Append Microsoft origin scope if requested. */ uint8_t *ms_origin_scope_opt = knot_pkt_edns_option(query, KNOT_EDNS_MICROSOFT_ORIGIN_SCOPE_CODE); if (ms_origin_scope_opt) { @@ -328,7 +328,7 @@ static int answer_edns_init(const knot_pkt_t *query, knot_pkt_t *resp, return ret; } } - +#endif /* Append NSID if requested and available. */ if (knot_pkt_edns_option(query, KNOT_EDNS_OPTION_NSID) != NULL) { conf_val_t *nsid = &conf()->cache.srv_nsid;