Skip to content

Commit

Permalink
Remove TEST_GET_DEFAULT_GATEWAY as it duplicates --show-gateway
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Frank Lichtenheld <[email protected]>
Message-Id: <[email protected]>
URL: https://www.mail-archive.com/[email protected]/msg27624.html
Signed-off-by: Gert Doering <[email protected]>
(cherry picked from commit 6158228)
  • Loading branch information
schwabe authored and cron2 committed Dec 2, 2023
1 parent 350bdd8 commit 3168e1a
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/openvpn/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -890,17 +890,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();
Expand Down

0 comments on commit 3168e1a

Please sign in to comment.