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:
@@ -26,8 +26,6 @@
|
||||
#include <isc/string.h>
|
||||
#include <isc/util.h>
|
||||
|
||||
#define DEFAULT_DOH_PATH "/dns-query"
|
||||
|
||||
typedef enum { UDP, TCP, DOT, HTTPS, HTTP } protocol_t;
|
||||
|
||||
static const char *protocols[] = { "udp", "tcp", "dot", "https", "http-plain" };
|
||||
@@ -291,8 +289,8 @@ run(void) {
|
||||
isc_tlsctx_createserver(NULL, NULL, &tls_ctx);
|
||||
}
|
||||
eps = isc_nm_http_endpoints_new(mctx);
|
||||
result = isc_nm_http_endpoints_add(eps, DEFAULT_DOH_PATH,
|
||||
read_cb, NULL, 0);
|
||||
result = isc_nm_http_endpoints_add(
|
||||
eps, ISC_NM_HTTP_DEFAULT_PATH, read_cb, NULL, 0);
|
||||
|
||||
if (result == ISC_R_SUCCESS) {
|
||||
result = isc_nm_listenhttp(netmgr, &sockaddr, 0, NULL,
|
||||
|
Reference in New Issue
Block a user