Skip to content

Commit

Permalink
- Fix to display warning if quic-port is set but dnsoverquic is not
Browse files Browse the repository at this point in the history
  enabled when compiled.
  • Loading branch information
wcawijngaards committed Oct 14, 2024
1 parent e0c93e3 commit 114edf2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/Changelog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
5 changes: 5 additions & 0 deletions util/configparser.y
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 114edf2

Please sign in to comment.