2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

Replace multiple /dns-query constants with a global one

This commit replaces the constants defining /dns-query, the default
DoH endpoint, with a global definition.
This commit is contained in:
Artem Boldariev
2021-08-12 14:56:34 +03:00
parent 33fa1d5fb4
commit db1ba15ff2
7 changed files with 68 additions and 60 deletions

View File

@@ -11389,7 +11389,7 @@ listenelt_http(const cfg_obj_t *http, bool tls, const char *key,
endpoints[i++] = isc_mem_strdup(mctx, path);
}
} else {
endpoints[i++] = isc_mem_strdup(mctx, "/dns-query");
endpoints[i++] = isc_mem_strdup(mctx, ISC_NM_HTTP_DEFAULT_PATH);
}
INSIST(i == len);