From 8d33c060282fedc26d46e02aeee98fb751330adb Mon Sep 17 00:00:00 2001 From: james Date: Fri, 3 Feb 2006 09:04:52 +0000 Subject: Added feature to --management-client to confirm connection by writing IP addr and port to a file. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@885 e7ae566f-a301-0410-adde-c780ea21d3b5 --- options.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'options.c') diff --git a/options.c b/options.c index 45d0023..2c9dbcb 100644 --- a/options.c +++ b/options.c @@ -1184,6 +1184,7 @@ show_settings (const struct options *o) SHOW_BOOL (management_query_passwords); SHOW_BOOL (management_hold); SHOW_BOOL (management_client); + SHOW_STR (management_write_peer_info_file); #endif #ifdef ENABLE_PLUGIN if (o->plugin_list) @@ -1498,7 +1499,8 @@ options_postprocess (struct options *options, bool first_time) */ #ifdef ENABLE_MANAGEMENT if (!options->management_addr && - (options->management_query_passwords || options->management_hold || options->management_client + (options->management_query_passwords || options->management_hold + || options->management_client || options->management_write_peer_info_file || options->management_log_history_cache != defaults.management_log_history_cache)) msg (M_USAGE, "--management is not specified, however one or more options which modify the behavior of --management were specified"); #endif @@ -3129,6 +3131,7 @@ add_option (struct options *options, { VERIFY_PERMISSION (OPT_P_GENERAL); options->management_client = true; + options->management_write_peer_info_file = p[1]; } else if (streq (p[0], "management-log-cache") && p[1]) { -- cgit