]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix to display warning if quic-port is set but dnsoverquic is not
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 14 Oct 2024 09:34:26 +0000 (11:34 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 14 Oct 2024 09:34:26 +0000 (11:34 +0200)
  enabled when compiled.

doc/Changelog
util/configparser.y

index 3c1cd047d38c9d7b281c0e87feb73f9873347817..620f06b07b133f3e71dc96800e4c133a51552ed8 100644 (file)
@@ -1,3 +1,7 @@
+14 October 2024: Wouter
+       - Fix to display warning if quic-port is set but dnsoverquic is not
+         enabled when compiled.
+
 11 October 2024: Wouter
        - Fix to disable detection of quic configured ports when quic is
          not compiled in.
index 9978e12f9572be4fa4ca7faedbbbfc2a9ee75313..c10a5f475d3263809af878b0028d6ee28f2b542e 100644 (file)
@@ -1214,6 +1214,11 @@ server_http_notls_downstream: VAR_HTTP_NOTLS_DOWNSTREAM STRING_ARG
 server_quic_port: VAR_QUIC_PORT STRING_ARG
        {
                OUTYY(("P(server_quic_port:%s)\n", $2));
+#ifndef HAVE_NGTCP2
+               log_warn("%s:%d: Unbound is not compiled with "
+                       "ngtcp2. This is required to use DNS "
+                       "over QUIC.", cfg_parser->filename, cfg_parser->line);
+#endif
                if(atoi($2) == 0)
                        yyerror("port number expected");
                else cfg_parser->cfg->quic_port = atoi($2);