Skip to content

Commit

Permalink
- Fix to disable detection of quic configured ports when quic is
Browse files Browse the repository at this point in the history
  not compiled in.
  • Loading branch information
wcawijngaards committed Oct 11, 2024
1 parent 8b7782e commit 1b7e14d
Show file tree
Hide file tree
Showing 2 changed files with 11 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 @@
11 October 2024: Wouter
- Fix to disable detection of quic configured ports when quic is
not compiled in.

10 October 2024: Wouter
- Fix cookie_file test sporadic fails for time change during
the test.
Expand Down
7 changes: 7 additions & 0 deletions util/config_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -2832,10 +2832,17 @@ if_is_dnscrypt(const char* ifname, const char* port, int dnscrypt_port)
int
if_is_quic(const char* ifname, const char* port, int quic_port)
{
#ifndef HAVE_NGTCP2
(void)ifname;
(void)port;
(void)quic_port;
return 0;
#else
char* p = strchr(ifname, '@');
if(!p && atoi(port) == quic_port)
return 1;
if(p && atoi(p+1) == quic_port)
return 1;
return 0;
#endif
}

0 comments on commit 1b7e14d

Please sign in to comment.