From 9a0de14aa17229330719d5ff8fbbaf085c2992ba Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Tue, 21 Jan 2025 10:13:48 +0100 Subject: [PATCH] - Fix compile of interface check code when dnscrypt or quic is disabled. --- doc/Changelog | 4 ++++ util/config_file.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/Changelog b/doc/Changelog index 8c9591884..90916f45b 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -3,6 +3,10 @@ protocols. - Port to string only when needed before getaddrinfo(). +21 January 2025: Wouter + - Fix compile of interface check code when dnscrypt or quic is + disabled. + 20 January 2025: Yorgos - Merge #1222: Unique DoT and DoH SSL contexts to allow for different ALPN. diff --git a/util/config_file.c b/util/config_file.c index 19327c5be..5fef48ed8 100644 --- a/util/config_file.c +++ b/util/config_file.c @@ -2817,7 +2817,7 @@ if_is_dnscrypt(const char* ifname, int default_port, int dnscrypt_port) return if_listens_on(ifname, default_port, dnscrypt_port, NULL); #else (void)ifname; - (void)port; + (void)default_port; (void)dnscrypt_port; return 0; #endif @@ -2830,7 +2830,7 @@ if_is_quic(const char* ifname, int default_port, int quic_port) return if_listens_on(ifname, default_port, quic_port, NULL); #else (void)ifname; - (void)port; + (void)default_port; (void)quic_port; return 0; #endif -- 2.47.3