The --show-gateway feature depends on functions only being enabled when
--disable-debug is _not_ used. As this I consider --show-gateway more
a handy function for debugging, removing this feature when --disable-debug
is used seems like the proper approach.
Signed-off-by: David Sommerseth <davids@redhat.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
... | ... |
@@ -735,7 +735,9 @@ static const char usage_message[] = |
735 | 735 |
#endif /* ENABLE_PKCS11 */ |
736 | 736 |
"\n" |
737 | 737 |
"General Standalone Options:\n" |
738 |
+#ifdef ENABLE_DEBUG |
|
738 | 739 |
"--show-gateway : Show info about default gateway.\n" |
740 |
+#endif |
|
739 | 741 |
; |
740 | 742 |
|
741 | 743 |
#endif /* !ENABLE_SMALL */ |
... | ... |
@@ -4058,6 +4060,7 @@ add_option (struct options *options, |
4058 | 4058 |
|
4059 | 4059 |
read_config_file (options, p[1], level, file, line, msglevel, permission_mask, option_types_found, es); |
4060 | 4060 |
} |
4061 |
+#ifdef ENABLE_DEBUG |
|
4061 | 4062 |
else if (streq (p[0], "show-gateway")) |
4062 | 4063 |
{ |
4063 | 4064 |
struct route_gateway_info rgi; |
... | ... |
@@ -4066,6 +4069,7 @@ add_option (struct options *options, |
4066 | 4066 |
print_default_gateway(M_INFO, &rgi); |
4067 | 4067 |
openvpn_exit (OPENVPN_EXIT_STATUS_GOOD); /* exit point */ |
4068 | 4068 |
} |
4069 |
+#endif |
|
4069 | 4070 |
#if 0 |
4070 | 4071 |
else if (streq (p[0], "foreign-option") && p[1]) |
4071 | 4072 |
{ |