From 6158228f16836f56a564d4533e7b513dc6170854 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Fri, 1 Dec 2023 12:17:17 +0100 Subject: [PATCH] Remove TEST_GET_DEFAULT_GATEWAY as it duplicates --show-gateway This debug code is not very useful as it is outdated and the same functionality is provided by --show-gateway Change-Id: Ie7fd59cc84e2eb024086c28c2ec2a5606a2b2e7c Signed-off-by: Arne Schwabe Acked-by: Frank Lichtenheld Message-Id: <20231201111717.14940-1-frank@lichtenheld.com> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg27624.html Signed-off-by: Gert Doering --- src/openvpn/init.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/openvpn/init.c b/src/openvpn/init.c index ca42c926567..9972ed711ae 100644 --- a/src/openvpn/init.c +++ b/src/openvpn/init.c @@ -880,17 +880,6 @@ init_static(void) return false; #endif -#ifdef TEST_GET_DEFAULT_GATEWAY - { - struct route_gateway_info rgi; - struct route_ipv6_gateway_info rgi6; - get_default_gateway(&rgi); - get_default_gateway_ipv6(&rgi6, NULL); - print_default_gateway(M_INFO, &rgi, &rgi6); - return false; - } -#endif - #ifdef GEN_PATH_TEST { struct gc_arena gc = gc_new();