mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 14:53:15 -05:00
- Fix to disable detection of quic configured ports when quic is
not compiled in.
This commit is contained in:
parent
8b7782e8fc
commit
1b7e14dc39
2 changed files with 11 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue