]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Remove TEST_GET_DEFAULT_GATEWAY as it duplicates --show-gateway
authorArne Schwabe <arne@rfc2549.org>
Fri, 1 Dec 2023 11:17:17 +0000 (12:17 +0100)
committerGert Doering <gert@greenie.muc.de>
Sat, 2 Dec 2023 15:28:43 +0000 (16:28 +0100)
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 <arne@rfc2549.org>
Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
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 <gert@greenie.muc.de>
src/openvpn/init.c

index ca42c92656760c32a4595dbae6c56f243dffac10..9972ed711ae363b683c446f2dc4f60a2cc0c3340 100644 (file)
@@ -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();