]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
process-query: hide custom EDNS (workaround)
authorDaniel Salzman <daniel.salzman@nic.cz>
Thu, 9 Oct 2025 11:41:45 +0000 (13:41 +0200)
committerDaniel Salzman <daniel.salzman@nic.cz>
Thu, 9 Oct 2025 11:41:45 +0000 (13:41 +0200)
src/knot/nameserver/process_query.c

index 8ad684c784ba6bd482357cf23c357eeea7475f78..049580ef99ec055dc1270656573e45a5701d3f7a 100644 (file)
@@ -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;