From 1b7e14dc39256b172a93412e23a60cde86a7548c Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Fri, 11 Oct 2024 08:51:14 +0200 Subject: [PATCH] - Fix to disable detection of quic configured ports when quic is not compiled in. --- doc/Changelog | 4 ++++ util/config_file.c | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/doc/Changelog b/doc/Changelog index e88b887b8..1346031f2 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -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. diff --git a/util/config_file.c b/util/config_file.c index 879764bd9..aca0039d4 100644 --- a/util/config_file.c +++ b/util/config_file.c @@ -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 } -- 2.47.3